~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/options.h

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 21:23:54 UTC
  • mto: This revision was merged to the branch mainline in revision 2449.
  • Revision ID: olafvdspek@gmail.com-20111024212354-j32gbc2sbsw0985q
Use str_ref

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef PLUGIN_MYSQL_PROTOCOL_OPTIONS_H
21
 
#define PLUGIN_MYSQL_PROTOCOL_OPTIONS_H
 
20
#pragma once
22
21
 
23
22
namespace drizzle_plugin
24
23
{
71
70
};
72
71
 
73
72
 
74
 
#define CLIENT_NET_READ_TIMEOUT    365*24*3600  /* Timeout on read */
75
 
#define CLIENT_NET_WRITE_TIMEOUT  365*24*3600  /* Timeout on write */
76
 
 
77
73
#define CLIENT_LONG_PASSWORD    1       /* new more secure passwords */
78
74
#define CLIENT_FOUND_ROWS       2       /* Found instead of affected rows */
79
75
#define CLIENT_LONG_FLAG        4       /* Get all column flags */
83
79
#define CLIENT_ODBC             64      /* Odbc client */
84
80
#define CLIENT_IGNORE_SPACE     256     /* Ignore spaces before '(' */
85
81
#define CLIENT_PROTOCOL_MYSQL41 512     /* New 4.1 protocol */
 
82
#define CLIENT_INTERACTIVE      1024
86
83
#define CLIENT_SSL              2048    /* Switch to SSL after handshake */
87
84
#define CLIENT_IGNORE_SIGPIPE   4096    /* IGNORE sigpipes */
 
85
#define CLIENT_TRANSACTIONS     8192    /* Support transactions */
88
86
#define CLIENT_RESERVED         16384   /* Old flag for 4.1 protocol  */
89
87
#define CLIENT_SECURE_CONNECTION 32768  /* New 4.1 authentication */
90
88
#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
91
89
#define CLIENT_MULTI_RESULTS    (1UL << 17) /* Enable/disable multi-results */
92
 
 
93
 
#define CLIENT_ADMIN            (1UL << 25) /* Admin client connection */
 
90
#define CLIENT_CAPABILITIES_PLUGIN_AUTH (1 << 19)
94
91
 
95
92
#define CLIENT_SSL_VERIFY_SERVER_CERT (1UL << 30)
96
93
#define CLIENT_REMEMBER_OPTIONS (1UL << 31)
104
101
                           CLIENT_COMPRESS | \
105
102
                           CLIENT_ODBC | \
106
103
                           CLIENT_IGNORE_SPACE | \
 
104
                           CLIENT_INTERACTIVE | \
107
105
                           CLIENT_SSL | \
108
106
                           CLIENT_IGNORE_SIGPIPE | \
 
107
                           CLIENT_TRANSACTIONS | \
109
108
                           CLIENT_RESERVED | \
110
109
                           CLIENT_SECURE_CONNECTION | \
111
110
                           CLIENT_MULTI_STATEMENTS | \
112
111
                           CLIENT_MULTI_RESULTS | \
113
 
                           CLIENT_ADMIN | \
 
112
                           CLIENT_CAPABILITIES_PLUGIN_AUTH | \
114
113
                           CLIENT_SSL_VERIFY_SERVER_CERT | \
115
114
                           CLIENT_REMEMBER_OPTIONS)
116
115
 
125
124
 
126
125
} /* namespace drizzle_plugin */
127
126
 
128
 
#endif /* PLUGIN_MYSQL_PROTOCOL_OPTIONS_H */