~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/options.h

  • Committer: lbieber
  • Date: 2010-10-06 16:34:16 UTC
  • mfrom: (1816.1.3 build)
  • Revision ID: lbieber@orisndriz08-20101006163416-ea0sl59qgpglk21y
Merge Monty - Change the requirement from either libinnodb to libhaildb. Also, tied it to version 2.2
Merge Andrew - fix bug 650935: remove --compress from all clients
Merge Andrew - fix bug 653471: Add -A to drizzle client
Merge Travis - 621861 = To change C structs to C++ classes in Drizzle

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
 
namespace drizzle_plugin
24
 
{
 
23
#ifdef  __cplusplus
 
24
extern "C" {
 
25
#endif
25
26
 
26
27
enum drizzle_option
27
28
{
71
72
};
72
73
 
73
74
 
 
75
#ifdef  __cplusplus
 
76
}
 
77
#endif
 
78
 
74
79
#define CLIENT_NET_READ_TIMEOUT    365*24*3600  /* Timeout on read */
75
80
#define CLIENT_NET_WRITE_TIMEOUT  365*24*3600  /* Timeout on write */
76
81
 
85
90
#define CLIENT_PROTOCOL_MYSQL41 512     /* New 4.1 protocol */
86
91
#define CLIENT_SSL              2048    /* Switch to SSL after handshake */
87
92
#define CLIENT_IGNORE_SIGPIPE   4096    /* IGNORE sigpipes */
88
 
#define CLIENT_TRANSACTIONS     8192    /* Support transactions */
89
93
#define CLIENT_RESERVED         16384   /* Old flag for 4.1 protocol  */
90
94
#define CLIENT_SECURE_CONNECTION 32768  /* New 4.1 authentication */
91
95
#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
92
96
#define CLIENT_MULTI_RESULTS    (1UL << 17) /* Enable/disable multi-results */
93
97
 
94
 
#define CLIENT_ADMIN            (1UL << 25) /* Admin client connection */
95
 
 
96
98
#define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30)
97
99
#define CLIENT_REMEMBER_OPTIONS (1UL << 31)
98
100
 
107
109
                           CLIENT_IGNORE_SPACE | \
108
110
                           CLIENT_SSL | \
109
111
                           CLIENT_IGNORE_SIGPIPE | \
110
 
                           CLIENT_TRANSACTIONS | \
111
112
                           CLIENT_RESERVED | \
112
113
                           CLIENT_SECURE_CONNECTION | \
113
114
                           CLIENT_MULTI_STATEMENTS | \
114
115
                           CLIENT_MULTI_RESULTS | \
115
 
                           CLIENT_ADMIN | \
116
116
                           CLIENT_SSL_VERIFY_SERVER_CERT | \
117
117
                           CLIENT_REMEMBER_OPTIONS)
118
118
 
125
125
                                               & ~CLIENT_COMPRESS) \
126
126
                                               & ~CLIENT_SSL_VERIFY_SERVER_CERT)
127
127
 
128
 
} /* namespace drizzle_plugin */
129
 
 
130
128
#endif /* PLUGIN_MYSQL_PROTOCOL_OPTIONS_H */