~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to include/mysql.h

  • Committer: Brian Aker
  • Date: 2008-07-06 04:37:08 UTC
  • Revision ID: brian@tangent.org-20080706043708-evdouixhx78h1tqo
Next bit of removal of mediumint

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) <= MYSQL_TYPE_INT24 || (t) == MYSQL_TYPE_YEAR || (t) == MYSQL_TYPE_NEWDECIMAL)
 
62
#define IS_NUM(t)       ((t) <= MYSQL_TYPE_LONGLONG || (t) == MYSQL_TYPE_YEAR || (t) == MYSQL_TYPE_NEWDECIMAL)
63
63
#define IS_NUM_FIELD(f)  ((f)->flags & NUM_FLAG)
64
 
#define INTERNAL_NUM_FIELD(f) (((f)->type <= MYSQL_TYPE_INT24 && ((f)->type != MYSQL_TYPE_TIMESTAMP || (f)->length == 14 || (f)->length == 8)) || (f)->type == MYSQL_TYPE_YEAR)
 
64
#define INTERNAL_NUM_FIELD(f) (((f)->type <= MYSQL_TYPE_LONGLONG && ((f)->type != MYSQL_TYPE_TIMESTAMP || (f)->length == 14 || (f)->length == 8)) || (f)->type == MYSQL_TYPE_YEAR)
65
65
#define IS_LONGDATA(t) ((t) >= MYSQL_TYPE_TINY_BLOB && (t) <= MYSQL_TYPE_STRING)
66
66
 
67
67