~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/drizzle.h

  • Committer: Patrick Galbraith
  • Date: 2008-07-28 01:47:41 UTC
  • mto: (212.1.8 codestyle)
  • mto: This revision was merged to the branch mainline in revision 217.
  • Revision ID: patg@ishvara-20080728014741-yoasv5trt1ef9rha
Renamed FIELD_TYPE to DRIZZLE_TYPE

Show diffs side-by-side

added added

removed removed

Lines of Context:
59
59
#define IS_PRI_KEY(n)  ((n) & PRI_KEY_FLAG)
60
60
#define IS_NOT_NULL(n)  ((n) & NOT_NULL_FLAG)
61
61
#define IS_BLOB(n)  ((n) & BLOB_FLAG)
62
 
#define IS_NUM(t)  ((t) <= FIELD_TYPE_LONGLONG || (t) == FIELD_TYPE_YEAR || (t) == FIELD_TYPE_NEWDECIMAL)
 
62
#define IS_NUM(t)  ((t) <= DRIZZLE_TYPE_LONGLONG || (t) == DRIZZLE_TYPE_YEAR || (t) == DRIZZLE_TYPE_NEWDECIMAL)
63
63
#define IS_NUM_FIELD(f)   ((f)->flags & NUM_FLAG)
64
 
#define INTERNAL_NUM_FIELD(f) (((f)->type <= FIELD_TYPE_LONGLONG && ((f)->type != FIELD_TYPE_TIMESTAMP || (f)->length == 14 || (f)->length == 8)) || (f)->type == FIELD_TYPE_YEAR)
65
 
#define IS_LONGDATA(t) ((t) >= FIELD_TYPE_TINY_BLOB && (t) <= FIELD_TYPE_STRING)
 
64
#define INTERNAL_NUM_FIELD(f) (((f)->type <= DRIZZLE_TYPE_LONGLONG && ((f)->type != DRIZZLE_TYPE_TIMESTAMP || (f)->length == 14 || (f)->length == 8)) || (f)->type == DRIZZLE_TYPE_YEAR)
 
65
#define IS_LONGDATA(t) ((t) >= DRIZZLE_TYPE_TINY_BLOB && (t) <= DRIZZLE_TYPE_STRING)
66
66
 
67
67
 
68
68
typedef struct st_drizzle_field {