~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/options.h

  • Committer: Eric Day
  • Date: 2009-11-10 22:59:28 UTC
  • mto: This revision was merged to the branch mainline in revision 1218.
  • Revision ID: eday@oddments.org-20091110225928-hht1klldtfflwixc
Fixed header file guards and fixed test cases.

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
 
 
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
 
74
82
#define CLIENT_LONG_PASSWORD    1       /* new more secure passwords */
75
83
#define CLIENT_FOUND_ROWS       2       /* Found instead of affected rows */
76
84
#define CLIENT_LONG_FLAG        4       /* Get all column flags */
82
90
#define CLIENT_PROTOCOL_MYSQL41 512     /* New 4.1 protocol */
83
91
#define CLIENT_SSL              2048    /* Switch to SSL after handshake */
84
92
#define CLIENT_IGNORE_SIGPIPE   4096    /* IGNORE sigpipes */
85
 
#define CLIENT_TRANSACTIONS     8192    /* Support transactions */
86
93
#define CLIENT_RESERVED         16384   /* Old flag for 4.1 protocol  */
87
94
#define CLIENT_SECURE_CONNECTION 32768  /* New 4.1 authentication */
88
95
#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
89
96
#define CLIENT_MULTI_RESULTS    (1UL << 17) /* Enable/disable multi-results */
90
97
 
91
 
#define CLIENT_ADMIN            (1UL << 25) /* Admin client connection */
92
 
 
93
98
#define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30)
94
99
#define CLIENT_REMEMBER_OPTIONS (1UL << 31)
95
100
 
104
109
                           CLIENT_IGNORE_SPACE | \
105
110
                           CLIENT_SSL | \
106
111
                           CLIENT_IGNORE_SIGPIPE | \
107
 
                           CLIENT_TRANSACTIONS | \
108
112
                           CLIENT_RESERVED | \
109
113
                           CLIENT_SECURE_CONNECTION | \
110
114
                           CLIENT_MULTI_STATEMENTS | \
111
115
                           CLIENT_MULTI_RESULTS | \
112
 
                           CLIENT_ADMIN | \
113
116
                           CLIENT_SSL_VERIFY_SERVER_CERT | \
114
117
                           CLIENT_REMEMBER_OPTIONS)
115
118
 
122
125
                                               & ~CLIENT_COMPRESS) \
123
126
                                               & ~CLIENT_SSL_VERIFY_SERVER_CERT)
124
127
 
125
 
} /* namespace drizzle_plugin */
126
 
 
127
128
#endif /* PLUGIN_MYSQL_PROTOCOL_OPTIONS_H */