~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/func.h

  • Committer: Brian Aker
  • Date: 2009-01-17 02:46:52 UTC
  • Revision ID: brian@gir-3.local-20090117024652-4ducefje08ajbs1q
Refactor append_identifier and remove dead OPTION_QUOTE_SHOW_CREATE option
(we always quote).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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_DATE,
47
 
  ITEM_CAST_TIME,
48
 
  ITEM_CAST_DATETIME,
49
 
  ITEM_CAST_CHAR,
 
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,
50
54
  ITEM_CAST_DECIMAL
51
55
};
52
56
 
53
 
} /* namespace drizzled */
54
 
 
55
 
#endif /* DRIZZLED_ITEM_FUNC_H */
 
57
#endif /* DRIZZLE_SERVER_ITEM_FUNC_H */