MySQL  8.0.16
Source Code Documentation
client_priv.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
3 
4  This program is free software; you can redistribute it and/or modify
5  it under the terms of the GNU General Public License, version 2.0,
6  as published by the Free Software Foundation.
7 
8  This program is also distributed with certain software (including
9  but not limited to OpenSSL) that is licensed under separate terms,
10  as designated in a particular file or component or in included license
11  documentation. The authors of MySQL hereby grant you an additional
12  permission to link the program and your derivative works with the
13  separately licensed software that they have included with MySQL.
14 
15  This program is distributed in the hope that it will be useful,
16  but WITHOUT ANY WARRANTY; without even the implied warranty of
17  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18  GNU General Public License, version 2.0, for more details.
19 
20  You should have received a copy of the GNU General Public License
21  along with this program; if not, write to the Free Software
22  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
23 */
24 
25 #ifndef CLIENT_PRIV_INCLUDED
26 #define CLIENT_PRIV_INCLUDED
27 
28 /* Common defines for all clients */
29 
30 #include <mysql.h>
31 
32 #include "errmsg.h"
33 #include "m_string.h"
34 #include "my_getopt.h"
35 #include "my_sys.h"
36 
37 #ifndef WEXITSTATUS
38 #ifdef _WIN32
39 #define WEXITSTATUS(stat_val) (stat_val)
40 #else
41 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
42 #endif
43 #endif
44 
175  /* Add new option above this */
177 };
178 
179 /**
180  First mysql version supporting the information schema.
181 */
182 #define FIRST_INFORMATION_SCHEMA_VERSION 50003
183 
184 /**
185  Name of the information schema database.
186 */
187 #define INFORMATION_SCHEMA_DB_NAME "information_schema"
188 
189 /**
190  First mysql version supporting the performance schema.
191 */
192 #define FIRST_PERFORMANCE_SCHEMA_VERSION 50503
193 
194 /**
195  Name of the performance schema database.
196 */
197 #define PERFORMANCE_SCHEMA_DB_NAME "performance_schema"
198 
199 /**
200  First mysql version supporting the sys schema.
201 */
202 #define FIRST_SYS_SCHEMA_VERSION 50707
203 
204 /**
205  Name of the sys schema database.
206 */
207 #define SYS_SCHEMA_DB_NAME "sys"
208 
209 /**
210  Client deprecation warnings
211 */
212 #define CLIENT_WARN_DEPRECATED_NO_REPLACEMENT_MSG(opt) \
213  opt " is deprecated and will be removed in a future version\n"
214 
215 #define CLIENT_WARN_DEPRECATED_MSG(opt, new_opt) \
216  opt " is deprecated and will be removed in a future version. " \
217  "Use " new_opt " instead.\n"
218 
219 #define CLIENT_WARN_DEPRECATED_NO_REPLACEMENT(opt) \
220  printf("WARNING: " CLIENT_WARN_DEPRECATED_NO_REPLACEMENT_MSG(opt))
221 
222 #define CLIENT_WARN_DEPRECATED(opt, new_opt) \
223  printf("WARNING: " CLIENT_WARN_DEPRECATED_MSG(opt, new_opt))
224 #endif
Definition: client_priv.h:153
Definition: client_priv.h:95
Definition: client_priv.h:144
Definition: client_priv.h:122
Definition: client_priv.h:101
Definition: client_priv.h:137
Definition: client_priv.h:91
Definition: client_priv.h:140
Definition: client_priv.h:81
Definition: client_priv.h:167
Definition: client_priv.h:159
Definition: client_priv.h:88
Definition: client_priv.h:85
Definition: client_priv.h:150
Definition: client_priv.h:132
Definition: client_priv.h:158
Definition: client_priv.h:116
Definition: client_priv.h:97
Definition: client_priv.h:57
Definition: client_priv.h:80
Definition: client_priv.h:84
Definition: client_priv.h:115
Definition: client_priv.h:58
Definition: client_priv.h:173
Definition: client_priv.h:49
options_client
Definition: client_priv.h:45
Definition: client_priv.h:102
Definition: client_priv.h:68
Definition: client_priv.h:172
Definition: client_priv.h:135
Definition: client_priv.h:106
Definition: client_priv.h:157
Definition: client_priv.h:161
Definition: client_priv.h:148
Definition: client_priv.h:74
Definition: client_priv.h:63
Definition: client_priv.h:141
Definition: client_priv.h:156
Definition: client_priv.h:46
Definition: client_priv.h:73
Definition: client_priv.h:51
Definition: client_priv.h:113
Definition: client_priv.h:99
Definition: client_priv.h:118
Definition: client_priv.h:71
Definition: client_priv.h:114
Definition: client_priv.h:78
Definition: client_priv.h:69
Definition: client_priv.h:67
Definition: client_priv.h:168
Definition: client_priv.h:120
Definition: client_priv.h:104
Definition: client_priv.h:83
Definition: client_priv.h:77
Definition: client_priv.h:160
Definition: client_priv.h:152
Definition: client_priv.h:94
Definition: client_priv.h:126
Definition: client_priv.h:155
Definition: client_priv.h:109
Definition: client_priv.h:174
Definition: client_priv.h:48
This file defines the client API to MySQL and also the ABI of the dynamically linked libmysqlclient...
Definition: client_priv.h:89
Definition: client_priv.h:138
Definition: client_priv.h:90
Definition: client_priv.h:103
Definition: client_priv.h:121
Definition: client_priv.h:82
Definition: client_priv.h:125
Definition: client_priv.h:62
Definition: client_priv.h:98
Definition: client_priv.h:146
Definition: client_priv.h:164
Definition: client_priv.h:163
Definition: client_priv.h:66
Definition: client_priv.h:151
Definition: client_priv.h:96
Definition: client_priv.h:75
Definition: client_priv.h:166
Definition: client_priv.h:145
Definition: client_priv.h:72
Definition: client_priv.h:165
Definition: client_priv.h:143
Definition: client_priv.h:124
Definition: client_priv.h:131
Definition: client_priv.h:129
Definition: client_priv.h:93
Definition: client_priv.h:133
Definition: client_priv.h:53
Definition: client_priv.h:117
Definition: client_priv.h:134
Definition: client_priv.h:76
Definition: client_priv.h:107
Definition: client_priv.h:170
Definition: client_priv.h:119
Definition: client_priv.h:60
Definition: client_priv.h:87
Definition: client_priv.h:56
Common header for many mysys elements.
Definition: client_priv.h:171
Definition: client_priv.h:123
Definition: client_priv.h:64
Definition: client_priv.h:108
Definition: client_priv.h:54
Definition: client_priv.h:154
Definition: client_priv.h:55
Definition: client_priv.h:86
Definition: client_priv.h:112
Definition: client_priv.h:127
Definition: client_priv.h:105
Definition: client_priv.h:70
Definition: client_priv.h:52
Definition: client_priv.h:169
Definition: client_priv.h:79
Definition: client_priv.h:59
Definition: client_priv.h:47
Definition: client_priv.h:100
Definition: client_priv.h:92
Definition: client_priv.h:111
Definition: client_priv.h:162
Error messages for MySQL clients.
Definition: client_priv.h:65
Definition: client_priv.h:139
Definition: client_priv.h:128
Definition: client_priv.h:147
Definition: client_priv.h:136
Definition: client_priv.h:176
Definition: client_priv.h:61
Definition: client_priv.h:130
Definition: client_priv.h:50
Definition: client_priv.h:142
Definition: client_priv.h:149
Definition: client_priv.h:110