~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/func.h

  • Committer: Monty Taylor
  • Date: 2009-01-29 19:04:39 UTC
  • mto: (779.3.29 devel)
  • mto: This revision was merged to the branch mainline in revision 823.
  • Revision ID: mordred@inaugust.com-20090129190439-vfr95s6gaudjacm7
Add timegm which is missing on Solaris.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_ITEM_FUNC_H
21
 
#define DRIZZLED_ITEM_FUNC_H
22
 
 
 
20
#ifndef DRIZZLED_SERVER_ITEM_FUNC_H
 
21
#define DRIZZLED_SERVER_ITEM_FUNC_H
 
22
 
 
23
/* Function items used by mysql */
 
24
 
 
25
 
 
26
#ifdef HAVE_IEEEFP_H
 
27
extern "C"                              /* Bug in BSDI include file */
 
28
{
 
29
#include <ieeefp.h>
 
30
}
 
31
#endif
23
32
 
24
33
/* If you fix the parser to no longer create functions these can be moved to create.cc */
 
34
#include <drizzled/function/ascii.h>
25
35
#include <drizzled/function/math/divide.h>
26
36
#include <drizzled/function/get_user_var.h>
27
37
#include <drizzled/function/math/int.h>
37
47
 
38
48
/* For type casts */
39
49
 
40
 
namespace drizzled
41
 
{
42
 
 
43
50
enum Cast_target
44
51
{
45
 
  ITEM_CAST_BINARY,
46
 
  ITEM_CAST_SIGNED,
47
 
  ITEM_CAST_UNSIGNED,
48
 
  ITEM_CAST_DATE,
49
 
  ITEM_CAST_TIME,
50
 
  ITEM_CAST_DATETIME,
51
 
  ITEM_CAST_CHAR,
52
 
  ITEM_CAST_BOOLEAN,
 
52
  ITEM_CAST_BINARY, ITEM_CAST_SIGNED_INT, ITEM_CAST_UNSIGNED_INT,
 
53
  ITEM_CAST_DATE, ITEM_CAST_TIME, ITEM_CAST_DATETIME, ITEM_CAST_CHAR,
53
54
  ITEM_CAST_DECIMAL
54
55
};
55
56
 
56
 
} /* namespace drizzled */
57
 
 
58
 
#endif /* DRIZZLED_ITEM_FUNC_H */
 
57
#endif /* DRIZZLE_SERVER_ITEM_FUNC_H */