~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/common.h

  • Committer: Andrew Hutchings
  • Date: 2011-02-01 10:23:22 UTC
  • mto: (2136.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 2137.
  • Revision ID: andrew@linuxjedi.co.uk-20110201102322-oxztcyrjzg3c7yta
Fix counters cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 */
19
19
 
20
20
/*
21
 
** Common definition between Drizzle server & client
 
21
** Common definition between mysql server & client
22
22
*/
23
23
 
24
 
#pragma once
 
24
#ifndef DRIZZLED_COMMON_H
 
25
#define DRIZZLED_COMMON_H
25
26
 
26
27
#include <unistd.h>
27
28
#include <stdint.h>
77
78
/** If not set then the thread will ignore all warnings with level notes. */
78
79
#define OPTION_SQL_NOTES                (UINT64_C(1) << 31) // THD, user
79
80
 
 
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
 
80
87
#define HOSTNAME_LENGTH 60
81
88
#define SYSTEM_CHARSET_MBMAXLEN 4
82
89
#define USERNAME_CHAR_LENGTH 16
165
172
  COM_SHUTDOWN,
166
173
  COM_CONNECT,
167
174
  COM_PING,
168
 
  COM_KILL,
169
175
  /* don't forget to update const char *command_name[] in sql_parse.cc */
170
176
  /* Must be last */
171
177
  COM_END
195
201
 
196
202
#endif /* defined(__cplusplus) */
197
203
 
 
204
#endif /* DRIZZLED_COMMON_H */