~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/mysql_protocol/options.h

  • Committer: Monty Taylor
  • Date: 2011-01-26 19:15:55 UTC
  • mto: This revision was merged to the branch mainline in revision 2126.
  • Revision ID: mordred@inaugust.com-20110126191555-nq5nnzyscvngsip2
Turns on -fvisibility=hidden by default. Symbols intended to be used by
plugins need to be marked with DRIZZLED_API.

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
 
#pragma once
 
20
#ifndef PLUGIN_MYSQL_PROTOCOL_OPTIONS_H
 
21
#define PLUGIN_MYSQL_PROTOCOL_OPTIONS_H
21
22
 
22
23
namespace drizzle_plugin
23
24
{
70
71
};
71
72
 
72
73
 
 
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
 
73
77
#define CLIENT_LONG_PASSWORD    1       /* new more secure passwords */
74
78
#define CLIENT_FOUND_ROWS       2       /* Found instead of affected rows */
75
79
#define CLIENT_LONG_FLAG        4       /* Get all column flags */
79
83
#define CLIENT_ODBC             64      /* Odbc client */
80
84
#define CLIENT_IGNORE_SPACE     256     /* Ignore spaces before '(' */
81
85
#define CLIENT_PROTOCOL_MYSQL41 512     /* New 4.1 protocol */
82
 
#define CLIENT_INTERACTIVE      1024
83
86
#define CLIENT_SSL              2048    /* Switch to SSL after handshake */
84
87
#define CLIENT_IGNORE_SIGPIPE   4096    /* IGNORE sigpipes */
85
 
#define CLIENT_TRANSACTIONS     8192    /* Support transactions */
86
88
#define CLIENT_RESERVED         16384   /* Old flag for 4.1 protocol  */
87
89
#define CLIENT_SECURE_CONNECTION 32768  /* New 4.1 authentication */
88
90
#define CLIENT_MULTI_STATEMENTS (1UL << 16) /* Enable/disable multi-stmt support */
89
91
#define CLIENT_MULTI_RESULTS    (1UL << 17) /* Enable/disable multi-results */
90
 
#define CLIENT_CAPABILITIES_PLUGIN_AUTH (1 << 19)
91
92
 
92
93
#define CLIENT_ADMIN            (1UL << 25) /* Admin client connection */
93
94
 
103
104
                           CLIENT_COMPRESS | \
104
105
                           CLIENT_ODBC | \
105
106
                           CLIENT_IGNORE_SPACE | \
106
 
                           CLIENT_INTERACTIVE | \
107
107
                           CLIENT_SSL | \
108
108
                           CLIENT_IGNORE_SIGPIPE | \
109
 
                           CLIENT_TRANSACTIONS | \
110
109
                           CLIENT_RESERVED | \
111
110
                           CLIENT_SECURE_CONNECTION | \
112
111
                           CLIENT_MULTI_STATEMENTS | \
113
112
                           CLIENT_MULTI_RESULTS | \
114
 
                           CLIENT_CAPABILITIES_PLUGIN_AUTH | \
115
113
                           CLIENT_ADMIN | \
116
114
                           CLIENT_SSL_VERIFY_SERVER_CERT | \
117
115
                           CLIENT_REMEMBER_OPTIONS)
127
125
 
128
126
} /* namespace drizzle_plugin */
129
127
 
 
128
#endif /* PLUGIN_MYSQL_PROTOCOL_OPTIONS_H */