~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/common.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-10 09:27:50 UTC
  • mto: (2430.1.6 rf)
  • mto: This revision was merged to the branch mainline in revision 2436.
  • Revision ID: olafvdspek@gmail.com-20111010092750-ryxgmn7zj5yvxfkf
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
/*
21
 
** Common definition between mysql server & client
 
21
** Common definition between Drizzle server & client
22
22
*/
23
23
 
24
 
#ifndef DRIZZLED_COMMON_H
25
 
#define DRIZZLED_COMMON_H
 
24
#pragma once
26
25
 
27
26
#include <unistd.h>
28
27
#include <stdint.h>
78
77
/** If not set then the thread will ignore all warnings with level notes. */
79
78
#define OPTION_SQL_NOTES                (UINT64_C(1) << 31) // THD, user
80
79
 
81
 
/**
82
 
  Maximum length of time zone name that we support
83
 
  (Time zone name is char(64) in db). mysqlbinlog needs it.
84
 
*/
85
 
#define MAX_TIME_ZONE_NAME_LENGTH       (NAME_LEN + 1)
86
 
 
87
80
#define HOSTNAME_LENGTH 60
88
81
#define SYSTEM_CHARSET_MBMAXLEN 4
89
82
#define USERNAME_CHAR_LENGTH 16
167
160
{
168
161
  COM_SLEEP,
169
162
  COM_QUIT,
170
 
  COM_INIT_DB,
 
163
  COM_USE_SCHEMA,
171
164
  COM_QUERY,
172
165
  COM_SHUTDOWN,
173
166
  COM_CONNECT,
174
167
  COM_PING,
 
168
  COM_KILL,
175
169
  /* don't forget to update const char *command_name[] in sql_parse.cc */
176
170
  /* Must be last */
177
171
  COM_END
190
184
                        DRIZZLE_TYPE_DECIMAL,
191
185
                        DRIZZLE_TYPE_ENUM,
192
186
                        DRIZZLE_TYPE_BLOB,
193
 
                        DRIZZLE_TYPE_UUID
 
187
                        DRIZZLE_TYPE_TIME,
 
188
                        DRIZZLE_TYPE_BOOLEAN,
 
189
                        DRIZZLE_TYPE_UUID,
 
190
                        DRIZZLE_TYPE_MICROTIME,
 
191
                        DRIZZLE_TYPE_IPV6
194
192
};
195
 
const int enum_field_types_size= DRIZZLE_TYPE_UUID + 1;
 
193
const int enum_field_types_size= DRIZZLE_TYPE_IPV6 + 1;
196
194
 
197
195
} /* namespace drizzled */
198
196
 
199
197
#endif /* defined(__cplusplus) */
200
198
 
201
 
#endif /* DRIZZLED_COMMON_H */