~drizzle-trunk/drizzle/development

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
/* - mode: c; c-basic-offset: 2; indent-tabs-mode: nil; -*-
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
 *
 *  Copyright (C) 2008 MySQL
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; either version 2 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */

#ifndef _client_errname_h
#define _client_errname_h

/* List of error names to error codes, available from 5.0 */

#include <string>
#include <map>

class ErrorCodes 
{
public:
  ErrorCodes() : error_code_map()
  {
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO",1002));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_YES",1003));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CREATE_FILE",1004));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CREATE_TABLE",1005));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CREATE_DB",1006));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DB_CREATE_EXISTS",1007));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DB_DROP_EXISTS",1008));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DB_DROP_DELETE",1009));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DB_DROP_RMDIR",1010));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_DELETE_FILE",1011));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_FIND_SYSTEM_REC",1012));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_GET_STAT",1013));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_GET_WD",1014));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_LOCK",1015));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_OPEN_FILE",1016));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FILE_NOT_FOUND",1017));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_READ_DIR",1018));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_SET_WD",1019));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CHECKREAD",1020));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DISK_FULL",1021));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUP_KEY",1022));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ERROR_ON_CLOSE",1023));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ERROR_ON_READ",1024));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ERROR_ON_RENAME",1025));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ERROR_ON_WRITE",1026));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FILE_USED",1027));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FILSORT_ABORT",1028));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FORM_NOT_FOUND",1029));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_GET_ERRNO",1030));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ILLEGAL_HA",1031));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_KEY_NOT_FOUND",1032));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NOT_FORM_FILE",1033));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NOT_KEYFILE",1034));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_OLD_KEYFILE",1035));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_OPEN_AS_READONLY",1036));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_OUTOFMEMORY",1037));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_OUT_OF_SORTMEMORY",1038));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNEXPECTED_EOF",1039));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CON_COUNT_ERROR",1040));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_OUT_OF_RESOURCES",1041));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BAD_HOST_ERROR",1042));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_HANDSHAKE_ERROR",1043));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DBACCESS_DENIED_ERROR",1044));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ACCESS_DENIED_ERROR",1045));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_DB_ERROR",1046));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_COM_ERROR",1047));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BAD_NULL_ERROR",1048));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BAD_DB_ERROR",1049));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_EXISTS_ERROR",1050));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BAD_TABLE_ERROR",1051));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NON_UNIQ_ERROR",1052));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SERVER_SHUTDOWN",1053));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BAD_FIELD_ERROR",1054));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_FIELD_WITH_GROUP",1055));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_GROUP_FIELD",1056));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_SUM_SELECT",1057));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_VALUE_COUNT",1058));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_LONG_IDENT",1059));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUP_FIELDNAME",1060));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUP_KEYNAME",1061));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUP_ENTRY",1062));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_FIELD_SPEC",1063));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARSE_ERROR",1064));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EMPTY_QUERY",1065));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NONUNIQ_TABLE",1066));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INVALID_DEFAULT",1067));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MULTIPLE_PRI_KEY",1068));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_MANY_KEYS",1069));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_MANY_KEY_PARTS",1070));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_LONG_KEY",1071));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_KEY_COLUMN_DOES_NOT_EXITS",1072));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BLOB_USED_AS_KEY",1073));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_BIG_FIELDLENGTH",1074));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_AUTO_KEY",1075));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_READY",1076));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NORMAL_SHUTDOWN",1077));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_GOT_SIGNAL",1078));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SHUTDOWN_COMPLETE",1079));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FORCING_CLOSE",1080));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_IPSOCK_ERROR",1081));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_SUCH_INDEX",1082));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_FIELD_TERMINATORS",1083));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BLOBS_AND_NO_TERMINATED",1084));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TEXTFILE_NOT_READABLE",1085));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FILE_EXISTS_ERROR",1086));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOAD_INFO",1087));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ALTER_INFO",1088));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_SUB_KEY",1089));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_REMOVE_ALL_FIELDS",1090));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_DROP_FIELD_OR_KEY",1091));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INSERT_INFO",1092));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UPDATE_TABLE_USED",1093));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_SUCH_THREAD",1094));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_KILL_DENIED_ERROR",1095));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_TABLES_USED",1096));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_BIG_SET",1097));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_UNIQUE_LOGFILE",1098));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_NOT_LOCKED_FOR_WRITE",1099));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_NOT_LOCKED",1100));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BLOB_CANT_HAVE_DEFAULT",1101));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_DB_NAME",1102));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_TABLE_NAME",1103));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_BIG_SELECT",1104));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_ERROR",1105));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_PROCEDURE",1106));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_PARAMCOUNT_TO_PROCEDURE",1107));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_PARAMETERS_TO_PROCEDURE",1108));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_TABLE",1109));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FIELD_SPECIFIED_TWICE",1110));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INVALID_GROUP_FUNC_USE",1111));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNSUPPORTED_EXTENSION",1112));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_MUST_HAVE_COLUMNS",1113));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_RECORD_FILE_FULL",1114));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_CHARACTER_SET",1115));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_MANY_TABLES",1116));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_MANY_FIELDS",1117));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_BIG_ROWSIZE",1118));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_STACK_OVERRUN",1119));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_OUTER_JOIN",1120));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NULL_COLUMN_IN_INDEX",1121));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_FIND_UDF",1122));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_INITIALIZE_UDF",1123));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UDF_NO_PATHS",1124));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UDF_EXISTS",1125));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_OPEN_LIBRARY",1126));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_FIND_DL_ENTRY",1127));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FUNCTION_NOT_DEFINED",1128));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_HOST_IS_BLOCKED",1129));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_HOST_NOT_PRIVILEGED",1130));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PASSWORD_ANONYMOUS_USER",1131));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PASSWORD_NOT_ALLOWED",1132));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PASSWORD_NO_MATCH",1133));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UPDATE_INFO",1134));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CREATE_THREAD",1135));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_VALUE_COUNT_ON_ROW",1136));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_REOPEN_TABLE",1137));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INVALID_USE_OF_NULL",1138));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_REGEXP_ERROR",1139));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MIX_OF_GROUP_FUNC_AND_FIELDS",1140));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NONEXISTING_GRANT",1141));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLEACCESS_DENIED_ERROR",1142));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_COLUMNACCESS_DENIED_ERROR",1143));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ILLEGAL_GRANT_FOR_TABLE",1144));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_GRANT_WRONG_HOST_OR_USER",1145));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_SUCH_TABLE",1146));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NONEXISTING_TABLE_GRANT",1147));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NOT_ALLOWED_COMMAND",1148));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SYNTAX_ERROR",1149));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DELAYED_CANT_CHANGE_LOCK",1150));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_MANY_DELAYED_THREADS",1151));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ABORTING_CONNECTION",1152));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NET_PACKET_TOO_LARGE",1153));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NET_READ_ERROR_FROM_PIPE",1154));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NET_FCNTL_ERROR",1155));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NET_PACKETS_OUT_OF_ORDER",1156));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NET_UNCOMPRESS_ERROR",1157));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NET_READ_ERROR",1158));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NET_READ_INTERRUPTED",1159));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NET_ERROR_ON_WRITE",1160));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NET_WRITE_INTERRUPTED",1161));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_LONG_STRING",1162));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_CANT_HANDLE_BLOB",1163));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_CANT_HANDLE_AUTO_INCREMENT",1164));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DELAYED_INSERT_TABLE_LOCKED",1165));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_COLUMN_NAME",1166));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_KEY_COLUMN",1167));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_MRG_TABLE",1168));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUP_UNIQUE",1169));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BLOB_KEY_WITHOUT_LENGTH",1170));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PRIMARY_CANT_HAVE_NULL",1171));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_MANY_ROWS",1172));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_REQUIRES_PRIMARY_KEY",1173));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_RAID_COMPILED",1174));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UPDATE_WITHOUT_KEY_IN_SAFE_MODE",1175));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_KEY_DOES_NOT_EXITS",1176));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CHECK_NO_SUCH_TABLE",1177));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CHECK_NOT_IMPLEMENTED",1178));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_DO_THIS_DURING_AN_TRANSACTION",1179));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ERROR_DURING_COMMIT",1180));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ERROR_DURING_ROLLBACK",1181));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ERROR_DURING_FLUSH_LOGS",1182));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ERROR_DURING_CHECKPOINT",1183));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NEW_ABORTING_CONNECTION",1184));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUMP_NOT_IMPLEMENTED",1185));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FLUSH_MASTER_BINLOG_CLOSED",1186));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INDEX_REBUILD",1187));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MASTER",1188));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MASTER_NET_READ",1189));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MASTER_NET_WRITE",1190));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FT_MATCHING_KEY_NOT_FOUND",1191));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOCK_OR_ACTIVE_TRANSACTION",1192));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_SYSTEM_VARIABLE",1193));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CRASHED_ON_USAGE",1194));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CRASHED_ON_REPAIR",1195));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARNING_NOT_COMPLETE_ROLLBACK",1196));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRANS_CACHE_FULL",1197));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_MUST_STOP",1198));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_NOT_RUNNING",1199));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BAD_SLAVE",1200));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MASTER_INFO",1201));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_THREAD",1202));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_MANY_USER_CONNECTIONS",1203));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SET_CONSTANTS_ONLY",1204));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOCK_WAIT_TIMEOUT",1205));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOCK_TABLE_FULL",1206));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_READ_ONLY_TRANSACTION",1207));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DROP_DB_WITH_READ_LOCK",1208));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CREATE_DB_WITH_READ_LOCK",1209));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_ARGUMENTS",1210));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_PERMISSION_TO_CREATE_USER",1211));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNION_TABLES_IN_DIFFERENT_DIR",1212));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOCK_DEADLOCK",1213));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_CANT_HANDLE_FT",1214));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANNOT_ADD_FOREIGN",1215));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_REFERENCED_ROW",1216));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ROW_IS_REFERENCED",1217));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CONNECT_TO_MASTER",1218));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_QUERY_ON_MASTER",1219));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ERROR_WHEN_EXECUTING_COMMAND",1220));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_USAGE",1221));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT",1222));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_UPDATE_WITH_READLOCK",1223));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MIXING_NOT_ALLOWED",1224));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUP_ARGUMENT",1225));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_USER_LIMIT_REACHED",1226));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SPECIFIC_ACCESS_DENIED_ERROR",1227));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOCAL_VARIABLE",1228));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_GLOBAL_VARIABLE",1229));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_DEFAULT",1230));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_VALUE_FOR_VAR",1231));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_TYPE_FOR_VAR",1232));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VAR_CANT_BE_READ",1233));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_USE_OPTION_HERE",1234));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NOT_SUPPORTED_YET",1235));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MASTER_FATAL_ERROR_READING_BINLOG",1236));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_IGNORED_TABLE",1237));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INCORRECT_GLOBAL_LOCAL_VAR",1238));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_FK_DEF",1239));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_KEY_REF_DO_NOT_MATCH_TABLE_REF",1240));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_OPERAND_COLUMNS",1241));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SUBQUERY_NO_1_ROW",1242));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_STMT_HANDLER",1243));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CORRUPT_HELP_DB",1244));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CYCLIC_REFERENCE",1245));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_AUTO_CONVERT",1246));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ILLEGAL_REFERENCE",1247));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DERIVED_MUST_HAVE_ALIAS",1248));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SELECT_REDUCED",1249));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLENAME_NOT_ALLOWED_HERE",1250));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NOT_SUPPORTED_AUTH_MODE",1251));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SPATIAL_CANT_HAVE_NULL",1252));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_COLLATION_CHARSET_MISMATCH",1253));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_WAS_RUNNING",1254));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_WAS_NOT_RUNNING",1255));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_BIG_FOR_UNCOMPRESS",1256));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ZLIB_Z_MEM_ERROR",1257));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ZLIB_Z_BUF_ERROR",1258));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ZLIB_Z_DATA_ERROR",1259));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CUT_VALUE_GROUP_CONCAT",1260));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_TOO_FEW_RECORDS",1261));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_TOO_MANY_RECORDS",1262));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_NULL_TO_NOTNULL",1263));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_DATA_OUT_OF_RANGE",1264));
    error_code_map.insert(std::pair<std::string, uint32_t>("WARN_DATA_TRUNCATED",1265));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_USING_OTHER_HANDLER",1266));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_AGGREGATE_2COLLATIONS",1267));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DROP_USER",1268));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_REVOKE_GRANTS",1269));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_AGGREGATE_3COLLATIONS",1270));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_AGGREGATE_NCOLLATIONS",1271));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VARIABLE_IS_NOT_STRUCT",1272));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_COLLATION",1273));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_IGNORED_SSL_PARAMS",1274));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SERVER_IS_IN_SECURE_AUTH_MODE",1275));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_FIELD_RESOLVED",1276));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BAD_SLAVE_UNTIL_COND",1277));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MISSING_SKIP_SLAVE",1278));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNTIL_COND_IGNORED",1279));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_NAME_FOR_INDEX",1280));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_NAME_FOR_CATALOG",1281));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_QC_RESIZE",1282));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BAD_FT_COLUMN",1283));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_KEY_CACHE",1284));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_HOSTNAME_WONT_WORK",1285));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_STORAGE_ENGINE",1286));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_DEPRECATED_SYNTAX",1287));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NON_UPDATABLE_TABLE",1288));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FEATURE_DISABLED",1289));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_OPTION_PREVENTS_STATEMENT",1290));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUPLICATED_VALUE_IN_TYPE",1291));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRUNCATED_WRONG_VALUE",1292));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_MUCH_AUTO_TIMESTAMP_COLS",1293));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INVALID_ON_UPDATE",1294));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNSUPPORTED_PS",1295));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_GET_ERRMSG",1296));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_GET_TEMPORARY_ERRMSG",1297));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_TIME_ZONE",1298));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_INVALID_TIMESTAMP",1299));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INVALID_CHARACTER_STRING",1300));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_ALLOWED_PACKET_OVERFLOWED",1301));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CONFLICTING_DECLARATIONS",1302));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_NO_RECURSIVE_CREATE",1303));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_ALREADY_EXISTS",1304));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_DOES_NOT_EXIST",1305));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_DROP_FAILED",1306));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_STORE_FAILED",1307));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_LILABEL_MISMATCH",1308));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_LABEL_REDEFINE",1309));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_LABEL_MISMATCH",1310));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_UNINIT_VAR",1311));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_BADSELECT",1312));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_BADRETURN",1313));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_BADSTATEMENT",1314));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UPDATE_LOG_DEPRECATED_IGNORED",1315));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UPDATE_LOG_DEPRECATED_TRANSLATED",1316));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_QUERY_INTERRUPTED",1317));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_WRONG_NO_OF_ARGS",1318));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_COND_MISMATCH",1319));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_NORETURN",1320));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_NORETURNEND",1321));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_BAD_CURSOR_QUERY",1322));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_BAD_CURSOR_SELECT",1323));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_CURSOR_MISMATCH",1324));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_CURSOR_ALREADY_OPEN",1325));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_CURSOR_NOT_OPEN",1326));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_UNDECLARED_VAR",1327));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_WRONG_NO_OF_FETCH_ARGS",1328));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_FETCH_NO_DATA",1329));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_DUP_PARAM",1330));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_DUP_VAR",1331));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_DUP_COND",1332));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_DUP_CURS",1333));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_CANT_ALTER",1334));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_SUBSELECT_NYI",1335));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_STMT_NOT_ALLOWED_IN_SF_OR_TRG",1336));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_VARCOND_AFTER_CURSHNDLR",1337));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_CURSOR_AFTER_HANDLER",1338));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_CASE_NOT_FOUND",1339));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FPARSER_TOO_BIG_FILE",1340));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FPARSER_BAD_HEADER",1341));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FPARSER_EOF_IN_COMMENT",1342));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FPARSER_ERROR_IN_PARAMETER",1343));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FPARSER_EOF_IN_UNKNOWN_PARAMETER",1344));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_NO_EXPLAIN",1345));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FRM_UNKNOWN_TYPE",1346));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_OBJECT",1347));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NONUPDATEABLE_COLUMN",1348));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_SELECT_DERIVED",1349));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_SELECT_CLAUSE",1350));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_SELECT_VARIABLE",1351));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_SELECT_TMPTABLE",1352));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_WRONG_LIST",1353));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_VIEW_MERGE",1354));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_VIEW_WITHOUT_KEY",1355));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_INVALID",1356));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_NO_DROP_SP",1357));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_GOTO_IN_HNDLR",1358));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_ALREADY_EXISTS",1359));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_DOES_NOT_EXIST",1360));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_ON_VIEW_OR_TEMP_TABLE",1361));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_CANT_CHANGE_ROW",1362));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_NO_SUCH_ROW_IN_TRG",1363));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_DEFAULT_FOR_FIELD",1364));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DIVISION_BY_ZERO",1365));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRUNCATED_WRONG_VALUE_FOR_FIELD",1366));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ILLEGAL_VALUE_FOR_TYPE",1367));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_NONUPD_CHECK",1368));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_CHECK_FAILED",1369));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PROCACCESS_DENIED_ERROR",1370));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_RELAY_LOG_FAIL",1371));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PASSWD_LENGTH",1372));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNKNOWN_TARGET_BINLOG",1373));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_IO_ERR_LOG_INDEX_READ",1374));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_PURGE_PROHIBITED",1375));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FSEEK_FAIL",1376));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_PURGE_FATAL_ERR",1377));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOG_IN_USE",1378));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOG_PURGE_UNKNOWN_ERR",1379));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_RELAY_LOG_INIT",1380));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_BINARY_LOGGING",1381));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_RESERVED_SYNTAX",1382));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WSAS_FAILED",1383));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DIFF_GROUPS_PROC",1384));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_GROUP_FOR_PROC",1385));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ORDER_WITH_PROC",1386));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOGGING_PROHIBIT_CHANGING_OF",1387));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_FILE_MAPPING",1388));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_MAGIC",1389));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PS_MANY_PARAM",1390));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_KEY_PART_0",1391));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_CHECKSUM",1392));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_MULTIUPDATE",1393));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_NO_INSERT_FIELD_LIST",1394));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_DELETE_MERGE_VIEW",1395));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANNOT_USER",1396));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_XAER_NOTA",1397));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_XAER_INVAL",1398));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_XAER_RMFAIL",1399));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_XAER_OUTSIDE",1400));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_XAER_RMERR",1401));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_XA_RBROLLBACK",1402));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NONEXISTING_PROC_GRANT",1403));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PROC_AUTO_GRANT_FAIL",1404));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PROC_AUTO_REVOKE_FAIL",1405));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DATA_TOO_LONG",1406));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_BAD_SQLSTATE",1407));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_STARTUP",1408));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR",1409));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CREATE_USER_WITH_GRANT",1410));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_VALUE_FOR_TYPE",1411));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_DEF_CHANGED",1412));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_DUP_HANDLER",1413));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_NOT_VAR_ARG",1414));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_NO_RETSET",1415));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CREATE_GEOMETRY_OBJECT",1416));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FAILED_ROUTINE_BREAK_BINLOG",1417));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_UNSAFE_ROUTINE",1418));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_CREATE_ROUTINE_NEED_SUPER",1419));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EXEC_STMT_WITH_OPEN_CURSOR",1420));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_STMT_HAS_NO_OPEN_CURSOR",1421));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG",1422));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_DEFAULT_FOR_VIEW_FIELD",1423));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_NO_RECURSION",1424));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_BIG_SCALE",1425));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_BIG_PRECISION",1426));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_M_BIGGER_THAN_D",1427));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_LOCK_OF_SYSTEM_TABLE",1428));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CONNECT_TO_FOREIGN_DATA_SOURCE",1429));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_QUERY_ON_FOREIGN_DATA_SOURCE",1430));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FOREIGN_DATA_SOURCE_DOESNT_EXIST",1431));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FOREIGN_DATA_STRING_INVALID_CANT_CREATE",1432));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FOREIGN_DATA_STRING_INVALID",1433));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CREATE_FEDERATED_TABLE",1434));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_IN_WRONG_SCHEMA",1435));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_STACK_OVERRUN_NEED_MORE",1436));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_LONG_BODY",1437));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_CANT_DROP_DEFAULT_KEYCACHE",1438));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_BIG_DISPLAYWIDTH",1439));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_XAER_DUPID",1440));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DATETIME_FUNCTION_OVERFLOW",1441));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG",1442));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_PREVENT_UPDATE",1443));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PS_NO_RECURSION",1444));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_CANT_SET_AUTOCOMMIT",1445));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MALFORMED_DEFINER",1446));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_FRM_NO_USER",1447));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_OTHER_USER",1448));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_SUCH_USER",1449));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FORBID_SCHEMA_CHANGE",1450));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ROW_IS_REFERENCED_2",1451));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_REFERENCED_ROW_2",1452));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_BAD_VAR_SHADOW",1453));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_NO_DEFINER",1454));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_OLD_FILE_FORMAT",1455));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_RECURSION_LIMIT",1456));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_PROC_TABLE_CORRUPT",1457));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_WRONG_NAME",1458));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_NEEDS_UPGRADE",1459));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SP_NO_AGGREGATE",1460));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MAX_PREPARED_STMT_COUNT_REACHED",1461));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_RECURSIVE",1462));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NON_GROUPING_FIELD_USED",1463));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLE_CANT_HANDLE_SPKEYS",1464));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_TRIGGERS_ON_SYSTEM_SCHEMA",1465));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_REMOVED_SPACES",1466));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_AUTOINC_READ_FAILED",1467));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_USERNAME",1468));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_HOSTNAME",1469));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_STRING_LENGTH",1470));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NON_INSERTABLE_TABLE",1471));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ADMIN_WRONG_MRG_TABLE",1472));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT",1473));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NAME_BECOMES_EMPTY",1474));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_AMBIGUOUS_FIELD_TERM",1475));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FOREIGN_SERVER_EXISTS",1476));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FOREIGN_SERVER_DOESNT_EXIST",1477));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ILLEGAL_HA_CREATE_OPTION",1478));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_REQUIRES_VALUES_ERROR",1479));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_WRONG_VALUES_ERROR",1480));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_MAXVALUE_ERROR",1481));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_SUBPARTITION_ERROR",1482));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_SUBPART_MIX_ERROR",1483));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_WRONG_NO_PART_ERROR",1484));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_WRONG_NO_SUBPART_ERROR",1485));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CONST_EXPR_IN_PARTITION_FUNC_ERROR",1486));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_CONST_EXPR_IN_RANGE_OR_LIST_ERROR",1487));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FIELD_NOT_FOUND_PART_ERROR",1488));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LIST_OF_FIELDS_ONLY_IN_HASH_ERROR",1489));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INCONSISTENT_PARTITION_INFO_ERROR",1490));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_FUNC_NOT_ALLOWED_ERROR",1491));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITIONS_MUST_BE_DEFINED_ERROR",1492));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_RANGE_NOT_INCREASING_ERROR",1493));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_INCONSISTENT_TYPE_OF_FUNCTIONS_ERROR",1494));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MULTIPLE_DEF_CONST_IN_LIST_PART_ERROR",1495));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_ENTRY_ERROR",1496));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_MIX_HANDLER_ERROR",1497));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_NOT_DEFINED_ERROR",1498));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TOO_MANY_PARTITIONS_ERROR",1499));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SUBPARTITION_ERROR",1500));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CREATE_HANDLER_FILE",1501));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BLOB_FIELD_IN_PART_FUNC_ERROR",1502));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNIQUE_KEY_NEED_ALL_FIELDS_IN_PF",1503));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_PARTS_ERROR",1504));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_MGMT_ON_NONPARTITIONED",1505));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FOREIGN_KEY_ON_PARTITIONED",1506));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DROP_PARTITION_NON_EXISTENT",1507));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DROP_LAST_PARTITION",1508));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_COALESCE_ONLY_ON_HASH_PARTITION",1509));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_REORG_HASH_ONLY_ON_SAME_NO",1510));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_REORG_NO_PARAM_ERROR",1511));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ONLY_ON_RANGE_LIST_PARTITION",1512));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ADD_PARTITION_SUBPART_ERROR",1513));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ADD_PARTITION_NO_NEW_PARTITION",1514));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_COALESCE_PARTITION_NO_PARTITION",1515));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_REORG_PARTITION_NOT_EXIST",1516));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SAME_NAME_PARTITION",1517));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_BINLOG_ERROR",1518));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CONSECUTIVE_REORG_PARTITIONS",1519));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_REORG_OUTSIDE_RANGE",1520));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_FUNCTION_FAILURE",1521));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PART_STATE_ERROR",1522));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LIMITED_PART_RANGE",1523));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PLUGIN_IS_NOT_LOADED",1524));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_VALUE",1525));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_PARTITION_FOR_GIVEN_VALUE",1526));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FILEGROUP_OPTION_ONLY_ONCE",1527));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CREATE_FILEGROUP_FAILED",1528));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DROP_FILEGROUP_FAILED",1529));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLESPACE_AUTO_EXTEND_ERROR",1530));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_SIZE_NUMBER",1531));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SIZE_OVERFLOW_ERROR",1532));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ALTER_FILEGROUP_FAILED",1533));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_ROW_LOGGING_FAILED",1534));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_ROW_WRONG_TABLE_DEF",1535));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_ROW_RBR_TO_SBR",1536));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_ALREADY_EXISTS",1537));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_STORE_FAILED",1538));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_DOES_NOT_EXIST",1539));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_CANT_ALTER",1540));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_DROP_FAILED",1541));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_INTERVAL_NOT_POSITIVE_OR_TOO_BIG",1542));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_ENDS_BEFORE_STARTS",1543));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_EXEC_TIME_IN_THE_PAST",1544));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_OPEN_TABLE_FAILED",1545));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_NEITHER_M_EXPR_NOR_M_AT",1546));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_COL_COUNT_DOESNT_MATCH_CORRUPTED",1547));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANNOT_LOAD_FROM_TABLE",1548));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_CANNOT_DELETE",1549));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_COMPILE_ERROR",1550));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_SAME_NAME",1551));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_DATA_TOO_LONG",1552));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DROP_INDEX_FK",1553));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_DEPRECATED_SYNTAX_WITH_VER",1554));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_WRITE_LOCK_LOG_TABLE",1555));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_LOCK_LOG_TABLE",1556));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_FOREIGN_DUPLICATE_KEY",1557));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_COL_COUNT_DOESNT_MATCH_PLEASE_UPDATE",1558));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR",1559));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT",1560));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NDB_CANT_SWITCH_BINLOG_FORMAT",1561));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_NO_TEMPORARY",1562));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_CONST_DOMAIN_ERROR",1563));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_FUNCTION_IS_NOT_ALLOWED",1564));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DDL_LOG_ERROR",1565));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NULL_IN_VALUES_LESS_THAN",1566));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_PARTITION_NAME",1567));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CHANGE_TX_ISOLATION",1568));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUP_ENTRY_AUTOINCREMENT_CASE",1569));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_MODIFY_QUEUE_ERROR",1570));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_SET_VAR_ERROR",1571));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PARTITION_MERGE_ERROR",1572));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_ACTIVATE_LOG",1573));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_RBR_NOT_AVAILABLE",1574));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BASE64_DECODE_ERROR",1575));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_RECURSION_FORBIDDEN",1576));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENTS_DB_ERROR",1577));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_ONLY_INTEGERS_ALLOWED",1578));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNSUPORTED_LOG_ENGINE",1579));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BAD_LOG_STATEMENT",1580));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_RENAME_LOG_TABLE",1581));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_PARAMCOUNT_TO_NATIVE_FCT",1582));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_PARAMETERS_TO_NATIVE_FCT",1583));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_PARAMETERS_TO_STORED_FCT",1584));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NATIVE_FCT_NAME_COLLISION",1585));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DUP_ENTRY_WITH_KEY_NAME",1586));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_PURGE_EMFILE",1587));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_CANNOT_CREATE_IN_THE_PAST",1588));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_CANNOT_ALTER_IN_THE_PAST",1589));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_INCIDENT",1590));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_PARTITION_FOR_GIVEN_VALUE_SILENT",1591));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_UNSAFE_STATEMENT",1592));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_FATAL_ERROR",1593));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_RELAY_LOG_READ_FAILURE",1594));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_RELAY_LOG_WRITE_FAILURE",1595));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_CREATE_EVENT_FAILURE",1596));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_MASTER_COM_FAILURE",1597));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BINLOG_LOGGING_IMPOSSIBLE",1598));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_NO_CREATION_CTX",1599));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIEW_INVALID_CREATION_CTX",1600));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SR_INVALID_CREATION_CTX",1601));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_CORRUPTED_FILE",1602));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_NO_CREATION_CTX",1603));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_INVALID_CREATION_CTX",1604));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_EVENT_INVALID_CREATION_CTX",1605));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TRG_CANT_OPEN_TABLE",1606));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CANT_CREATE_SROUTINE",1607));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_AMBIGOUS_EXEC_MODE",1608));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_FORMAT_DESCRIPTION_EVENT_BEFORE_BINLOG_STATEMENT",1609));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_CORRUPT_EVENT",1610));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOAD_DATA_INVALID_COLUMN",1611));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_LOG_PURGE_NO_FILE",1612));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARN_AUTO_CONVERT_LOCK",1613));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_AUTO_CONVERT_LOCK_STRICT",1614));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_AUTO_CONVERT_LOCK_TRANSACTION",1615));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_STORAGE_ENGINE",1616));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_BACKUP_START",1617));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_BACKUP_DONE",1618));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_RESTORE_START",1619));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_RESTORE_DONE",1620));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_NOTHING_TO_BACKUP",1621));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_CANNOT_INCLUDE_DB",1622));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_BACKUP",1623));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_RESTORE",1624));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_RUNNING",1625));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_BACKUP_PREPARE",1626));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_RESTORE_PREPARE",1627));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_INVALID_LOC",1628));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_READ_LOC",1629));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_WRITE_LOC",1630));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_LIST_DBS",1631));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_LIST_TABLES",1632));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_LIST_DB_TABLES",1633));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_SKIP_VIEW",1634));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_NO_ENGINE",1635));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_TABLE_OPEN",1636));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_READ_HEADER",1637));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_WRITE_HEADER",1638));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_NO_BACKUP_DRIVER",1639));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_NOT_ACCEPTED",1640));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_CREATE_BACKUP_DRIVER",1641));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_CREATE_RESTORE_DRIVER",1642));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_TOO_MANY_IMAGES",1643));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_WRITE_META",1644));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_READ_META",1645));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_CREATE_META",1646));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_GET_BUF",1647));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_WRITE_DATA",1648));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_READ_DATA",1649));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_NEXT_CHUNK",1650));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_INIT_BACKUP_DRIVER",1651));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_INIT_RESTORE_DRIVER",1652));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_STOP_BACKUP_DRIVER",1653));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_STOP_RESTORE_DRIVERS",1654));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_PREPARE_DRIVER",1655));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_CREATE_VP",1656));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_UNLOCK_DRIVER",1657));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_CANCEL_BACKUP",1658));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_CANCEL_RESTORE",1659));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_GET_DATA",1660));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_SEND_DATA",1661));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_SEND_DATA_RETRY",1662));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_OPEN_TABLES",1663));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_THREAD_INIT",1664));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_PROGRESS_TABLES",1665));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLESPACE_EXIST",1666));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_NO_SUCH_TABLESPACE",1667));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_HEARTBEAT_FAILURE",1668));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_SLAVE_HEARTBEAT_VALUE_OUT_OF_RANGE",1669));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_LOG_WRITE_ERROR",1670));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_TABLESPACE_NOT_EMPTY",1671));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_BACKUP_TS_CHANGE",1672));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VCOL_BASED_ON_VCOL",1673));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_VIRTUAL_COLUMN_FUNCTION_IS_NOT_ALLOWED",1674));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_DATA_CONVERSION_ERROR_FOR_VIRTUAL_COLUMN",1675));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_PRIMARY_KEY_BASED_ON_VIRTUAL_COLUMN",1676));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_KEY_BASED_ON_GENERATED_VIRTUAL_COLUMN",1677));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WRONG_FK_OPTION_FOR_VIRTUAL_COLUMN",1678));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_WARNING_NON_DEFAULT_VALUE_FOR_VIRTUAL_COLUMN",1679));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_UNSUPPORTED_ACTION_ON_VIRTUAL_COLUMN",1680));
    error_code_map.insert(std::pair<std::string, uint32_t>("ER_CONST_EXPR_IN_VCOL",1681));
  }

  /* This method does not compile as const. error: no match for 'operator[]' */
  uint32_t getErrorCode(const std::string &error_msg) /* const */
  {
    return error_code_map[error_msg];
  }

private:
  std::map<std::string, uint32_t> error_code_map;
};

ErrorCodes global_error_names;

#endif /* _client_errname_h */