~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/options.h

  • Committer: Brian Aker
  • Date: 2011-02-22 06:12:02 UTC
  • mfrom: (2190.1.6 drizzle-build)
  • Revision ID: brian@tangent.org-20110222061202-k03czxykqy4x9hjs
List update, header fixes, multiple symbols, and David deletes some code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef PLUGIN_MYSQL_PROTOCOL_OPTIONS_H
21
21
#define PLUGIN_MYSQL_PROTOCOL_OPTIONS_H
22
22
 
23
 
#ifdef  __cplusplus
24
 
extern "C" {
25
 
#endif
 
23
namespace drizzle_plugin
 
24
{
26
25
 
27
26
enum drizzle_option
28
27
{
72
71
};
73
72
 
74
73
 
75
 
#ifdef  __cplusplus
76
 
}
77
 
#endif
78
 
 
79
 
#define CLIENT_NET_READ_TIMEOUT    365*24*3600  /* Timeout on read */
80
 
#define CLIENT_NET_WRITE_TIMEOUT  365*24*3600  /* Timeout on write */
81
 
 
82
74
#define CLIENT_LONG_PASSWORD    1       /* new more secure passwords */
83
75
#define CLIENT_FOUND_ROWS       2       /* Found instead of affected rows */
84
76
#define CLIENT_LONG_FLAG        4       /* Get all column flags */
90
82
#define CLIENT_PROTOCOL_MYSQL41 512     /* New 4.1 protocol */
91
83
#define CLIENT_SSL              2048    /* Switch to SSL after handshake */
92
84
#define CLIENT_IGNORE_SIGPIPE   4096    /* IGNORE sigpipes */
 
85
#define CLIENT_TRANSACTIONS     8192    /* Support transactions */
93
86
#define CLIENT_RESERVED         16384   /* Old flag for 4.1 protocol  */
94
87
#define CLIENT_SECURE_CONNECTION 32768  /* New 4.1 authentication */
95
88
#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
96
89
#define CLIENT_MULTI_RESULTS    (1UL << 17) /* Enable/disable multi-results */
97
90
 
 
91
#define CLIENT_ADMIN            (1UL << 25) /* Admin client connection */
 
92
 
98
93
#define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30)
99
94
#define CLIENT_REMEMBER_OPTIONS (1UL << 31)
100
95
 
109
104
                           CLIENT_IGNORE_SPACE | \
110
105
                           CLIENT_SSL | \
111
106
                           CLIENT_IGNORE_SIGPIPE | \
 
107
                           CLIENT_TRANSACTIONS | \
112
108
                           CLIENT_RESERVED | \
113
109
                           CLIENT_SECURE_CONNECTION | \
114
110
                           CLIENT_MULTI_STATEMENTS | \
115
111
                           CLIENT_MULTI_RESULTS | \
 
112
                           CLIENT_ADMIN | \
116
113
                           CLIENT_SSL_VERIFY_SERVER_CERT | \
117
114
                           CLIENT_REMEMBER_OPTIONS)
118
115
 
125
122
                                               & ~CLIENT_COMPRESS) \
126
123
                                               & ~CLIENT_SSL_VERIFY_SERVER_CERT)
127
124
 
 
125
} /* namespace drizzle_plugin */
 
126
 
128
127
#endif /* PLUGIN_MYSQL_PROTOCOL_OPTIONS_H */