~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/common.h

Removed client_capabilities from session and pushed functionality into protocol plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
196
196
#define REFRESH_READ_LOCK       16384   /* Lock tables for read */
197
197
#define REFRESH_FAST            32768   /* Intern flag */
198
198
 
199
 
#define CLIENT_LONG_PASSWORD    1       /* new more secure passwords */
200
 
#define CLIENT_FOUND_ROWS       2       /* Found instead of affected rows */
201
 
#define CLIENT_LONG_FLAG        4       /* Get all column flags */
202
 
#define CLIENT_CONNECT_WITH_DB  8       /* One can specify db on connect */
203
 
#define CLIENT_NO_SCHEMA        16      /* Don't allow database.table.column */
204
 
#define CLIENT_COMPRESS         32      /* Can use compression protocol */
205
 
#define CLIENT_ODBC             64      /* Odbc client */
206
 
#define CLIENT_IGNORE_SPACE     256     /* Ignore spaces before '(' */
207
 
#define UNUSED_CLIENT_PROTOCOL_41       512     /* New 4.1 protocol */
208
 
#define CLIENT_SSL              2048    /* Switch to SSL after handshake */
209
 
#define CLIENT_IGNORE_SIGPIPE   4096    /* IGNORE sigpipes */
210
 
#define CLIENT_RESERVED         16384   /* Old flag for 4.1 protocol  */
211
 
#define CLIENT_SECURE_CONNECTION 32768  /* New 4.1 authentication */
212
 
#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
213
 
#define CLIENT_MULTI_RESULTS    (1UL << 17) /* Enable/disable multi-results */
214
 
 
215
 
#define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30)
216
 
#define CLIENT_REMEMBER_OPTIONS (1UL << 31)
217
 
 
218
 
/* Gather all possible capabilites (flags) supported by the server */
219
 
#define CLIENT_ALL_FLAGS  (CLIENT_LONG_PASSWORD | \
220
 
                           CLIENT_FOUND_ROWS | \
221
 
                           CLIENT_LONG_FLAG | \
222
 
                           CLIENT_CONNECT_WITH_DB | \
223
 
                           CLIENT_NO_SCHEMA | \
224
 
                           CLIENT_COMPRESS | \
225
 
                           CLIENT_ODBC | \
226
 
                           CLIENT_IGNORE_SPACE | \
227
 
                           CLIENT_SSL | \
228
 
                           CLIENT_IGNORE_SIGPIPE | \
229
 
                           CLIENT_RESERVED | \
230
 
                           CLIENT_SECURE_CONNECTION | \
231
 
                           CLIENT_MULTI_STATEMENTS | \
232
 
                           CLIENT_MULTI_RESULTS | \
233
 
                           CLIENT_SSL_VERIFY_SERVER_CERT | \
234
 
                           CLIENT_REMEMBER_OPTIONS)
235
 
 
236
 
/*
237
 
  Switch off the flags that are optional and depending on build flags
238
 
  If any of the optional flags is supported by the build it will be switched
239
 
  on before sending to the client during the connection handshake.
240
 
*/
241
 
#define CLIENT_BASIC_FLAGS (((CLIENT_ALL_FLAGS & ~CLIENT_SSL) \
242
 
                                               & ~CLIENT_COMPRESS) \
243
 
                                               & ~CLIENT_SSL_VERIFY_SERVER_CERT)
244
 
 
245
199
#define SERVER_STATUS_IN_TRANS     1    /* Transaction has started */
246
200
#define SERVER_STATUS_AUTOCOMMIT   2    /* Server in auto_commit mode */
247
201
#define SERVER_MORE_RESULTS_EXISTS 8    /* Multi query - next query exists */