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
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
|
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Copyright (C) 2009 Sun Microsystems
*
* 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 DRIZZLED_ENUM_H
#define DRIZZLED_ENUM_H
namespace drizzled
{
/**
Query type constants.
QT_ORDINARY -- ordinary SQL query.
QT_IS -- SQL query to be shown in INFORMATION_SCHEMA (in utf8 and without
character set introducers).
@TODO
Move this out of here once Stew's done with UDF breakout. The following headers need it:
sql_lex.h --> included by session.h
item.h
table.h
item_func.h
item_subselect.h
item_timefunc.h
item_sum.h
item_cmpfunc.h
item_strfunc.h
*/
enum enum_query_type
{
QT_ORDINARY,
QT_IS
};
/**
* @TODO Move to a separate header?
*
* It's needed by item.h and field.h, which are both inter-dependent
* and contain forward declarations of many structs/classes in the
* other header file.
*
* What is needed is a separate header file that is included
* by *both* item.h and field.h to resolve inter-dependencies
*
* But, probably want to hold off on this until Stew finished the UDF cleanup
*/
enum Derivation
{
DERIVATION_IGNORABLE= 5,
DERIVATION_COERCIBLE= 4,
DERIVATION_SYSCONST= 3,
DERIVATION_IMPLICIT= 2,
DERIVATION_NONE= 1,
DERIVATION_EXPLICIT= 0
};
enum enum_parsing_place
{
NO_MATTER,
IN_HAVING,
SELECT_LIST,
IN_WHERE,
IN_ON
};
enum enum_mysql_completiontype
{
ROLLBACK_RELEASE= -2,
ROLLBACK= 1,
ROLLBACK_AND_CHAIN= 7,
COMMIT_RELEASE= -1,
COMMIT= 0,
COMMIT_AND_CHAIN= 6
};
enum enum_check_fields
{
CHECK_FIELD_IGNORE,
CHECK_FIELD_WARN,
CHECK_FIELD_ERROR_FOR_NULL
};
enum sql_var_t
{
OPT_DEFAULT= 0,
OPT_SESSION,
OPT_GLOBAL
};
enum column_format_type
{
COLUMN_FORMAT_TYPE_NOT_USED= -1,
COLUMN_FORMAT_TYPE_DEFAULT= 0,
COLUMN_FORMAT_TYPE_FIXED= 1,
COLUMN_FORMAT_TYPE_DYNAMIC= 2
};
/**
Category of table found in the table share.
*/
enum enum_table_category
{
/**
Unknown value.
*/
TABLE_UNKNOWN_CATEGORY=0,
/**
Temporary table.
The table is visible only in the session.
Therefore,
- FLUSH TABLES WITH READ LOCK
- SET GLOBAL READ_ONLY = ON
do not apply to this table.
Note that LOCK Table t FOR READ/WRITE
can be used on temporary tables.
Temporary tables are not part of the table cache.
*/
TABLE_CATEGORY_TEMPORARY=1,
/**
User table.
These tables do honor:
- LOCK Table t FOR READ/WRITE
- FLUSH TABLES WITH READ LOCK
- SET GLOBAL READ_ONLY = ON
User tables are cached in the table cache.
*/
TABLE_CATEGORY_USER=2,
/**
Information schema tables.
These tables are an interface provided by the system
to inspect the system metadata.
These tables do *not* honor:
- LOCK Table t FOR READ/WRITE
- FLUSH TABLES WITH READ LOCK
- SET GLOBAL READ_ONLY = ON
as there is no point in locking explicitely
an INFORMATION_SCHEMA table.
Nothing is directly written to information schema tables.
Note that this value is not used currently,
since information schema tables are not shared,
but implemented as session specific temporary tables.
*/
/*
TODO: Fixing the performance issues of I_S will lead
to I_S tables in the table cache, which should use
this table type.
*/
TABLE_CATEGORY_INFORMATION
};
enum enum_enable_or_disable
{
LEAVE_AS_IS,
ENABLE,
DISABLE
};
enum enum_mark_columns
{
MARK_COLUMNS_NONE,
MARK_COLUMNS_READ,
MARK_COLUMNS_WRITE
};
enum enum_filetype
{
FILETYPE_CSV,
FILETYPE_XML
};
enum find_item_error_report_type
{
REPORT_ALL_ERRORS,
REPORT_EXCEPT_NOT_FOUND,
IGNORE_ERRORS,
REPORT_EXCEPT_NON_UNIQUE,
IGNORE_EXCEPT_NON_UNIQUE
};
/*
Values in this enum are used to indicate how a tables TIMESTAMP field
should be treated. It can be set to the current timestamp on insert or
update or both.
WARNING: The values are used for bit operations. If you change the
enum, you must keep the bitwise relation of the values. For example:
(int) TIMESTAMP_AUTO_SET_ON_BOTH must be equal to
(int) TIMESTAMP_AUTO_SET_ON_INSERT | (int) TIMESTAMP_AUTO_SET_ON_UPDATE.
We use an enum here so that the debugger can display the value names.
*/
enum timestamp_auto_set_type
{
TIMESTAMP_NO_AUTO_SET= 0,
TIMESTAMP_AUTO_SET_ON_INSERT= 1,
TIMESTAMP_AUTO_SET_ON_UPDATE= 2,
TIMESTAMP_AUTO_SET_ON_BOTH= 3
};
enum enum_ha_read_modes
{
RFIRST,
RNEXT,
RPREV,
RLAST,
RKEY,
RNEXT_SAME
};
enum enum_tx_isolation
{
ISO_READ_UNCOMMITTED,
ISO_READ_COMMITTED,
ISO_REPEATABLE_READ,
ISO_SERIALIZABLE
};
enum SHOW_COMP_OPTION
{
SHOW_OPTION_YES,
SHOW_OPTION_NO,
SHOW_OPTION_DISABLED
};
/*
When a command is added here, be sure it's also added in mysqld.cc
in "struct show_var_st status_vars[]= {" ...
If the command returns a result set or is not allowed in stored
functions or triggers, please also make sure that
sp_get_flags_for_command (sp_head.cc) returns proper flags for the
added SQLCOM_.
*/
enum enum_sql_command {
SQLCOM_SELECT,
SQLCOM_CREATE_TABLE,
SQLCOM_CREATE_INDEX,
SQLCOM_ALTER_TABLE,
SQLCOM_UPDATE,
SQLCOM_INSERT,
SQLCOM_INSERT_SELECT,
SQLCOM_DELETE,
SQLCOM_TRUNCATE,
SQLCOM_DROP_TABLE,
SQLCOM_DROP_INDEX,
SQLCOM_SHOW_CREATE,
SQLCOM_SHOW_CREATE_DB,
SQLCOM_LOAD,
SQLCOM_SET_OPTION,
SQLCOM_UNLOCK_TABLES,
SQLCOM_CHANGE_DB,
SQLCOM_CREATE_DB,
SQLCOM_DROP_DB,
SQLCOM_ALTER_DB,
SQLCOM_REPLACE,
SQLCOM_REPLACE_SELECT,
SQLCOM_CHECK,
SQLCOM_FLUSH,
SQLCOM_KILL,
SQLCOM_ANALYZE,
SQLCOM_ROLLBACK,
SQLCOM_ROLLBACK_TO_SAVEPOINT,
SQLCOM_COMMIT,
SQLCOM_SAVEPOINT,
SQLCOM_RELEASE_SAVEPOINT,
SQLCOM_BEGIN,
SQLCOM_RENAME_TABLE,
SQLCOM_SHOW_WARNS,
SQLCOM_EMPTY_QUERY,
SQLCOM_SHOW_ERRORS,
SQLCOM_CHECKSUM,
/*
When a command is added here, be sure it's also added in mysqld.cc
in "struct show_var_st status_vars[]= {" ...
*/
/* This should be the last !!! */
SQLCOM_END
};
enum enum_duplicates
{
DUP_ERROR,
DUP_REPLACE,
DUP_UPDATE
};
enum drizzled_error_code {
EE_ERROR_FIRST=1,
EE_CANTCREATEFILE,
EE_READ,
EE_WRITE,
EE_BADCLOSE,
EE_OUTOFMEMORY,
EE_DELETE,
EE_LINK,
EE_EOFERR,
EE_CANTLOCK,
EE_CANTUNLOCK,
EE_DIR,
EE_STAT,
EE_CANT_CHSIZE,
EE_CANT_OPEN_STREAM,
EE_LINK_WARNING,
EE_OPEN_WARNING,
EE_DISK_FULL,
EE_CANT_MKDIR,
EE_UNKNOWN_CHARSET,
EE_OUT_OF_FILERESOURCES,
EE_CANT_READLINK,
EE_CANT_SYMLINK,
EE_REALPATH,
EE_SYNC,
EE_UNKNOWN_COLLATION,
EE_FILENOTFOUND,
EE_FILE_NOT_CLOSED,
EE_ERROR_LAST= EE_FILE_NOT_CLOSED,
ER_ERROR_FIRST= 1000,
ER_UNUSED1000= ER_ERROR_FIRST,
ER_UNUSED1001,
ER_NO,
ER_YES,
ER_CANT_CREATE_FILE,
ER_CANT_CREATE_TABLE,
ER_CANT_CREATE_DB,
ER_DB_CREATE_EXISTS,
ER_DB_DROP_EXISTS,
ER_UNUSED1009,
ER_UNUSED1010,
ER_CANT_DELETE_FILE,
ER_UNUSED1012,
ER_CANT_GET_STAT,
ER_UNUSED1014,
ER_CANT_LOCK,
ER_CANT_OPEN_FILE,
ER_FILE_NOT_FOUND,
ER_CANT_READ_DIR,
ER_UNUSED1019,
ER_CHECKREAD,
ER_DISK_FULL,
ER_DUP_KEY,
ER_ERROR_ON_CLOSE,
ER_ERROR_ON_READ,
ER_ERROR_ON_RENAME,
ER_ERROR_ON_WRITE,
ER_FILE_USED,
ER_FILSORT_ABORT,
ER_UNUSED1029,
ER_GET_ERRNO,
ER_ILLEGAL_HA,
ER_KEY_NOT_FOUND,
ER_NOT_FORM_FILE,
ER_NOT_KEYFILE,
ER_OLD_KEYFILE,
ER_OPEN_AS_READONLY,
ER_OUTOFMEMORY,
ER_OUT_OF_SORTMEMORY,
ER_UNEXPECTED_EOF,
ER_CON_COUNT_ERROR,
ER_OUT_OF_RESOURCES,
ER_BAD_HOST_ERROR,
ER_HANDSHAKE_ERROR,
ER_DBACCESS_DENIED_ERROR,
ER_ACCESS_DENIED_ERROR,
ER_NO_DB_ERROR,
ER_UNKNOWN_COM_ERROR,
ER_BAD_NULL_ERROR,
ER_BAD_DB_ERROR,
ER_TABLE_EXISTS_ERROR,
ER_BAD_TABLE_ERROR,
ER_NON_UNIQ_ERROR,
ER_SERVER_SHUTDOWN,
ER_BAD_FIELD_ERROR,
ER_WRONG_FIELD_WITH_GROUP,
ER_WRONG_GROUP_FIELD,
ER_WRONG_SUM_SELECT,
ER_WRONG_VALUE_COUNT,
ER_TOO_LONG_IDENT,
ER_DUP_FIELDNAME,
ER_DUP_KEYNAME,
ER_DUP_ENTRY,
ER_WRONG_FIELD_SPEC,
ER_PARSE_ERROR,
ER_EMPTY_QUERY,
ER_NONUNIQ_TABLE,
ER_INVALID_DEFAULT,
ER_MULTIPLE_PRI_KEY,
ER_TOO_MANY_KEYS,
ER_TOO_MANY_KEY_PARTS,
ER_TOO_LONG_KEY,
ER_KEY_COLUMN_DOES_NOT_EXITS,
ER_BLOB_USED_AS_KEY,
ER_TOO_BIG_FIELDLENGTH,
ER_WRONG_AUTO_KEY,
ER_UNUSED1076,
ER_NORMAL_SHUTDOWN,
ER_GOT_SIGNAL,
ER_SHUTDOWN_COMPLETE,
ER_FORCING_CLOSE,
ER_IPSOCK_ERROR,
ER_NO_SUCH_INDEX,
ER_WRONG_FIELD_TERMINATORS,
ER_BLOBS_AND_NO_TERMINATED,
ER_TEXTFILE_NOT_READABLE,
ER_FILE_EXISTS_ERROR,
ER_LOAD_INFO,
ER_UNUSED1088,
ER_WRONG_SUB_KEY,
ER_CANT_REMOVE_ALL_FIELDS,
ER_CANT_DROP_FIELD_OR_KEY,
ER_INSERT_INFO,
ER_UPDATE_TABLE_USED,
ER_NO_SUCH_THREAD,
ER_KILL_DENIED_ERROR,
ER_NO_TABLES_USED,
ER_UNUSED1097,
ER_UNUSED1098,
ER_UNUSED1099,
ER_UNUSED1100,
ER_BLOB_CANT_HAVE_DEFAULT,
ER_WRONG_DB_NAME,
ER_WRONG_TABLE_NAME,
ER_TOO_BIG_SELECT,
ER_UNKNOWN_ERROR,
ER_UNKNOWN_PROCEDURE,
ER_WRONG_PARAMCOUNT_TO_PROCEDURE,
ER_UNUSED1108,
ER_UNKNOWN_TABLE,
ER_FIELD_SPECIFIED_TWICE,
ER_INVALID_GROUP_FUNC_USE,
ER_UNSUPPORTED_EXTENSION,
ER_TABLE_MUST_HAVE_COLUMNS,
ER_RECORD_FILE_FULL,
ER_UNUSED1115,
ER_TOO_MANY_TABLES,
ER_TOO_MANY_FIELDS,
ER_TOO_BIG_ROWSIZE,
ER_UNUSED1119,
ER_WRONG_OUTER_JOIN,
ER_NULL_COLUMN_IN_INDEX,
ER_UNUSED1122,
ER_UNUSED1123,
ER_PLUGIN_NO_PATHS,
ER_PLUGIN_EXISTS,
ER_CANT_OPEN_LIBRARY,
ER_CANT_FIND_DL_ENTRY,
ER_UNUSED1128,
ER_UNUSED1129,
ER_UNUSED1130,
ER_UNUSED1131,
ER_UNUSED1132,
ER_UNUSED1133,
ER_UPDATE_INFO,
ER_CANT_CREATE_THREAD,
ER_WRONG_VALUE_COUNT_ON_ROW,
ER_CANT_REOPEN_TABLE,
ER_UNUSED1138,
ER_UNUSED1139,
ER_MIX_OF_GROUP_FUNC_AND_FIELDS,
ER_UNUSED1141,
ER_UNUSED1142,
ER_UNUSED1143,
ER_UNUSED1144,
ER_UNUSED1145,
ER_NO_SUCH_TABLE,
ER_UNUSED1147,
ER_UNUSED1148,
ER_SYNTAX_ERROR,
ER_UNUSED1150,
ER_UNUSED1151,
ER_UNUSED1152,
ER_NET_PACKET_TOO_LARGE,
ER_UNUSED1154,
ER_UNUSED1155,
ER_NET_PACKETS_OUT_OF_ORDER,
ER_UNUSED1157,
ER_UNUSED1158,
ER_UNUSED1159,
ER_UNUSED1160,
ER_UNUSED1161,
ER_UNUSED1162,
ER_TABLE_CANT_HANDLE_BLOB,
ER_TABLE_CANT_HANDLE_AUTO_INCREMENT,
ER_UNUSED1165,
ER_WRONG_COLUMN_NAME,
ER_WRONG_KEY_COLUMN,
ER_WRONG_MRG_TABLE,
ER_DUP_UNIQUE,
ER_BLOB_KEY_WITHOUT_LENGTH,
ER_PRIMARY_CANT_HAVE_NULL,
ER_TOO_MANY_ROWS,
ER_REQUIRES_PRIMARY_KEY,
ER_UNUSED1174,
ER_UNUSED1175,
ER_KEY_DOES_NOT_EXITS,
ER_CHECK_NO_SUCH_TABLE,
ER_CHECK_NOT_IMPLEMENTED,
ER_UNUSED1179,
ER_ERROR_DURING_COMMIT,
ER_ERROR_DURING_ROLLBACK,
ER_UNUSED1182,
ER_UNUSED1183,
ER_NEW_ABORTING_CONNECTION,
ER_UNUSED1185,
ER_UNUSED1186,
ER_UNUSED1187,
ER_UNUSED1188,
ER_UNUSED1189,
ER_UNUSED1190,
ER_UNUSED1191,
ER_LOCK_OR_ACTIVE_TRANSACTION,
ER_UNKNOWN_SYSTEM_VARIABLE,
ER_CRASHED_ON_USAGE,
ER_CRASHED_ON_REPAIR,
ER_WARNING_NOT_COMPLETE_ROLLBACK,
ER_UNUSED1197,
ER_UNUSED1198,
ER_UNUSED1199,
ER_UNUSED1200,
ER_UNUSED1201,
ER_UNUSED1202,
ER_UNUSED1203,
ER_SET_CONSTANTS_ONLY,
ER_LOCK_WAIT_TIMEOUT,
ER_LOCK_TABLE_FULL,
ER_READ_ONLY_TRANSACTION,
ER_DROP_DB_WITH_READ_LOCK,
ER_UNUSED1209,
ER_WRONG_ARGUMENTS,
ER_UNUSED1211,
ER_UNUSED1212,
ER_LOCK_DEADLOCK,
ER_TABLE_CANT_HANDLE_FT,
ER_CANNOT_ADD_FOREIGN,
ER_NO_REFERENCED_ROW,
ER_ROW_IS_REFERENCED,
ER_UNUSED1218,
ER_UNUSED1219,
ER_UNUSED1220,
ER_WRONG_USAGE,
ER_WRONG_NUMBER_OF_COLUMNS_IN_SELECT,
ER_CANT_UPDATE_WITH_READLOCK,
ER_UNUSED1224,
ER_UNUSED1225,
ER_UNUSED1226,
ER_UNUSED1227,
ER_LOCAL_VARIABLE,
ER_GLOBAL_VARIABLE,
ER_NO_DEFAULT,
ER_WRONG_VALUE_FOR_VAR,
ER_WRONG_TYPE_FOR_VAR,
ER_VAR_CANT_BE_READ,
ER_CANT_USE_OPTION_HERE,
ER_NOT_SUPPORTED_YET,
ER_UNUSED1236,
ER_UNUSED1237,
ER_INCORRECT_GLOBAL_LOCAL_VAR,
ER_WRONG_FK_DEF,
ER_KEY_REF_DO_NOT_MATCH_TABLE_REF,
ER_OPERAND_COLUMNS,
ER_SUBQUERY_NO_1_ROW,
ER_UNUSED1243,
ER_UNUSED1244,
ER_UNUSED1245,
ER_AUTO_CONVERT,
ER_ILLEGAL_REFERENCE,
ER_DERIVED_MUST_HAVE_ALIAS,
ER_SELECT_REDUCED,
ER_TABLENAME_NOT_ALLOWED_HERE,
ER_UNUSED1251,
ER_SPATIAL_CANT_HAVE_NULL,
ER_COLLATION_CHARSET_MISMATCH,
ER_UNUSED1254,
ER_UNUSED1255,
ER_TOO_BIG_FOR_UNCOMPRESS,
ER_ZLIB_Z_MEM_ERROR,
ER_ZLIB_Z_BUF_ERROR,
ER_ZLIB_Z_DATA_ERROR,
ER_CUT_VALUE_GROUP_CONCAT,
ER_WARN_TOO_FEW_RECORDS,
ER_WARN_TOO_MANY_RECORDS,
ER_WARN_NULL_TO_NOTNULL,
ER_WARN_DATA_OUT_OF_RANGE,
ER_WARN_DATA_TRUNCATED,
ER_UNUSED1266,
ER_CANT_AGGREGATE_2COLLATIONS,
ER_UNUSED1268,
ER_UNUSED1269,
ER_CANT_AGGREGATE_3COLLATIONS,
ER_CANT_AGGREGATE_NCOLLATIONS,
ER_VARIABLE_IS_NOT_STRUCT,
ER_UNKNOWN_COLLATION,
ER_UNUSED1274,
ER_UNUSED1275,
ER_WARN_FIELD_RESOLVED,
ER_UNUSED1277,
ER_UNUSED1278,
ER_UNUSED1279,
ER_WRONG_NAME_FOR_INDEX,
ER_WRONG_NAME_FOR_CATALOG,
ER_UNUSED1282,
ER_BAD_FT_COLUMN,
ER_UNUSED1284,
ER_UNUSED1285,
ER_UNKNOWN_STORAGE_ENGINE,
ER_UNUSED1287,
ER_NON_UPDATABLE_TABLE,
ER_FEATURE_DISABLED,
ER_OPTION_PREVENTS_STATEMENT,
ER_DUPLICATED_VALUE_IN_TYPE,
ER_TRUNCATED_WRONG_VALUE,
ER_TOO_MUCH_AUTO_TIMESTAMP_COLS,
ER_INVALID_ON_UPDATE,
ER_UNUSED1295,
ER_GET_ERRMSG,
ER_GET_TEMPORARY_ERRMSG,
ER_UNKNOWN_TIME_ZONE,
ER_UNUSED1299,
ER_INVALID_CHARACTER_STRING,
ER_WARN_ALLOWED_PACKET_OVERFLOWED,
ER_UNUSED1302,
ER_UNUSED1303,
ER_UNUSED1304,
ER_SP_DOES_NOT_EXIST,
ER_UNUSED1306,
ER_UNUSED1307,
ER_UNUSED1308,
ER_UNUSED1309,
ER_UNUSED1310,
ER_UNUSED1311,
ER_UNUSED1312,
ER_UNUSED1313,
ER_UNUSED1314,
ER_UNUSED1315,
ER_UNUSED1316,
ER_QUERY_INTERRUPTED,
ER_UNUSED1318,
ER_UNUSED1319,
ER_UNUSED1320,
ER_UNUSED1321,
ER_UNUSED1322,
ER_UNUSED1323,
ER_UNUSED1324,
ER_UNUSED1325,
ER_UNUSED1326,
ER_UNUSED1327,
ER_UNUSED1328,
ER_SP_FETCH_NO_DATA,
ER_UNUSED1330,
ER_UNUSED1331,
ER_UNUSED1332,
ER_UNUSED1333,
ER_UNUSED1334,
ER_UNUSED1335,
ER_UNUSED1336,
ER_UNUSED1337,
ER_UNUSED1338,
ER_UNUSED1339,
ER_UNUSED1340,
ER_UNUSED1341,
ER_UNUSED1342,
ER_UNUSED1343,
ER_UNUSED1344,
ER_UNUSED1345,
ER_UNUSED1346,
ER_UNUSED1347,
ER_UNUSED1348,
ER_UNUSED1349,
ER_UNUSED1350,
ER_UNUSED1351,
ER_UNUSED1352,
ER_UNUSED1353,
ER_UNUSED1354,
ER_UNUSED1355,
ER_VIEW_INVALID,
ER_UNUSED1357,
ER_UNUSED1358,
ER_UNUSED1359,
ER_UNUSED1360,
ER_UNUSED1361,
ER_UNUSED1362,
ER_UNUSED1363,
ER_NO_DEFAULT_FOR_FIELD,
ER_DIVISION_BY_ZERO,
ER_TRUNCATED_WRONG_VALUE_FOR_FIELD,
ER_ILLEGAL_VALUE_FOR_TYPE,
ER_UNUSED1368,
ER_UNUSED1369,
ER_UNUSED1370,
ER_UNUSED1371,
ER_UNUSED1372,
ER_UNUSED1373,
ER_UNUSED1374,
ER_UNUSED1375,
ER_UNUSED1376,
ER_UNUSED1377,
ER_UNUSED1378,
ER_UNUSED1379,
ER_UNUSED1380,
ER_UNUSED1381,
ER_UNUSED1382,
ER_UNUSED1383,
ER_UNUSED1384,
ER_UNUSED1385,
ER_UNUSED1386,
ER_UNUSED1387,
ER_UNUSED1388,
ER_UNUSED1389,
ER_UNUSED1390,
ER_KEY_PART_0,
ER_UNUSED1392,
ER_UNUSED1393,
ER_UNUSED1394,
ER_UNUSED1395,
ER_UNUSED1396,
ER_UNUSED1397,
ER_UNUSED1398,
ER_XAER_RMFAIL,
ER_UNUSED1400,
ER_UNUSED1401,
ER_UNUSED1402,
ER_UNUSED1403,
ER_UNUSED1404,
ER_UNUSED1405,
ER_DATA_TOO_LONG,
ER_UNUSED1407,
ER_STARTUP,
ER_LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR,
ER_UNUSED1410,
ER_WRONG_VALUE_FOR_TYPE,
ER_TABLE_DEF_CHANGED,
ER_UNUSED1413,
ER_UNUSED1414,
ER_SP_NO_RETSET,
ER_CANT_CREATE_GEOMETRY_OBJECT,
ER_UNUSED1417,
ER_UNUSED1418,
ER_UNUSED1419,
ER_UNUSED1420,
ER_UNUSED1421,
ER_COMMIT_NOT_ALLOWED_IN_SF_OR_TRG,
ER_UNUSED1423,
ER_UNUSED1424,
ER_TOO_BIG_SCALE,
ER_TOO_BIG_PRECISION,
ER_M_BIGGER_THAN_D,
ER_UNUSED1428,
ER_UNUSED1429,
ER_UNUSED1430,
ER_UNUSED1431,
ER_UNUSED1432,
ER_UNUSED1433,
ER_UNUSED1434,
ER_TRG_IN_WRONG_SCHEMA,
ER_STACK_OVERRUN_NEED_MORE=1436, // TODO: Test case looks for this int
ER_UNUSED1437,
ER_UNUSED1438,
ER_TOO_BIG_DISPLAYWIDTH,
ER_UNUSED1440,
ER_DATETIME_FUNCTION_OVERFLOW,
ER_UNUSED1442,
ER_UNUSED1443,
ER_UNUSED1444,
ER_UNUSED1445,
ER_UNUSED1446,
ER_UNUSED1447,
ER_UNUSED1448,
ER_UNUSED1449,
ER_UNUSED1450,
ER_ROW_IS_REFERENCED_2,
ER_NO_REFERENCED_ROW_2,
ER_UNUSED1453,
ER_UNUSED1454,
ER_UNUSED1455,
ER_UNUSED1456,
ER_UNUSED1457,
ER_UNUSED1458,
ER_TABLE_NEEDS_UPGRADE,
ER_UNUSED1460,
ER_UNUSED1461,
ER_UNUSED1462,
ER_NON_GROUPING_FIELD_USED,
ER_TABLE_CANT_HANDLE_SPKEYS,
ER_UNUSED1465,
ER_REMOVED_SPACES,
ER_AUTOINC_READ_FAILED,
ER_UNUSED1468,
ER_UNUSED1469,
ER_WRONG_STRING_LENGTH,
ER_UNUSED1471,
ER_UNUSED1472,
ER_TOO_HIGH_LEVEL_OF_NESTING_FOR_SELECT,
ER_NAME_BECOMES_EMPTY,
ER_AMBIGUOUS_FIELD_TERM,
ER_UNUSED1476,
ER_UNUSED1477,
ER_ILLEGAL_HA_CREATE_OPTION,
ER_UNUSED1479,
ER_UNUSED1480,
ER_UNUSED1481,
ER_UNUSED1482,
ER_UNUSED1483,
ER_UNUSED1484,
ER_UNUSED1485,
ER_UNUSED1486,
ER_UNUSED1487,
ER_UNUSED1488,
ER_UNUSED1489,
ER_UNUSED1490,
ER_UNUSED1491,
ER_UNUSED1492,
ER_UNUSED1493,
ER_UNUSED1494,
ER_UNUSED1495,
ER_UNUSED1496,
ER_UNUSED1497,
ER_UNUSED1498,
ER_UNUSED1499,
ER_UNUSED1500,
ER_UNUSED1501,
ER_UNUSED1502,
ER_UNUSED1503,
ER_UNUSED1504,
ER_UNUSED1505,
ER_UNUSED1506,
ER_UNUSED1507,
ER_UNUSED1508,
ER_UNUSED1509,
ER_UNUSED1510,
ER_UNUSED1511,
ER_UNUSED1512,
ER_UNUSED1513,
ER_UNUSED1514,
ER_UNUSED1515,
ER_UNUSED1516,
ER_UNUSED1517,
ER_UNUSED1518,
ER_UNUSED1519,
ER_UNUSED1520,
ER_UNUSED1521,
ER_UNUSED1522,
ER_UNUSED1523,
ER_UNUSED1524,
ER_WRONG_VALUE,
ER_NO_PARTITION_FOR_GIVEN_VALUE,
ER_UNUSED1527,
ER_UNUSED1528,
ER_UNUSED1529,
ER_UNUSED1530,
ER_UNUSED1531,
ER_UNUSED1532,
ER_UNUSED1533,
ER_BINLOG_ROW_LOGGING_FAILED,
ER_UNUSED1535,
ER_UNUSED1536,
ER_UNUSED1537,
ER_UNUSED1538,
ER_UNUSED1539,
ER_UNUSED1540,
ER_UNUSED1541,
ER_UNUSED1542,
ER_UNUSED1543,
ER_UNUSED1544,
ER_UNUSED1545,
ER_UNUSED1546,
ER_UNUSED1547,
ER_UNUSED1548,
ER_UNUSED1549,
ER_UNUSED1550,
ER_UNUSED1551,
ER_UNUSED1552,
ER_DROP_INDEX_FK,
ER_UNUSED1554,
ER_UNUSED1555,
ER_UNUSED1556,
ER_FOREIGN_DUPLICATE_KEY,
ER_UNUSED1558,
ER_UNUSED1559,
ER_UNUSED1560,
ER_UNUSED1561,
ER_UNUSED1562,
ER_UNUSED1563,
ER_UNUSED1564,
ER_UNUSED1565,
ER_UNUSED1566,
ER_UNUSED1567,
ER_CANT_CHANGE_TX_ISOLATION,
ER_UNUSED1569,
ER_UNUSED1570,
ER_UNUSED1571,
ER_UNUSED1572,
ER_UNUSED1573,
ER_UNUSED1574,
ER_UNUSED1575,
ER_UNUSED1576,
ER_UNUSED1577,
ER_UNUSED1578,
ER_UNUSED1579,
ER_UNUSED1580,
ER_UNUSED1581,
ER_WRONG_PARAMCOUNT_TO_FUNCTION,
ER_WRONG_PARAMETERS_TO_NATIVE_FCT,
ER_UNUSED1584,
ER_UNUSED1585,
ER_DUP_ENTRY_WITH_KEY_NAME,
ER_UNUSED1587,
ER_UNUSED1588,
ER_UNUSED1589,
ER_UNUSED1590,
ER_UNUSED1591,
ER_UNUSED1592,
ER_UNUSED1593,
ER_UNUSED1594,
ER_UNUSED1595,
ER_UNUSED1596,
ER_UNUSED1597,
ER_UNUSED1598,
ER_UNUSED1599,
ER_UNUSED1600,
ER_UNUSED1601,
ER_UNUSED1602,
ER_UNUSED1603,
ER_UNUSED1604,
ER_UNUSED1605,
ER_UNUSED1606,
ER_UNUSED1607,
ER_UNUSED1608,
ER_UNUSED1609,
ER_UNUSED1610,
ER_LOAD_DATA_INVALID_COLUMN,
ER_UNUSED1612,
ER_UNUSED1613,
ER_UNUSED1614,
ER_UNUSED1615,
ER_UNUSED1616,
ER_UNUSED1617,
ER_UNUSED1618,
ER_UNUSED1619,
ER_UNUSED1620,
ER_UNUSED1621,
ER_UNUSED1622,
ER_UNUSED1623,
ER_UNUSED1624,
ER_UNUSED1625,
ER_UNUSED1626,
ER_UNUSED1627,
ER_UNUSED1628,
ER_UNUSED1629,
ER_UNUSED1630,
ER_UNUSED1631,
ER_UNUSED1632,
ER_UNUSED1633,
ER_UNUSED1634,
ER_UNUSED1635,
ER_UNUSED1636,
ER_UNUSED1637,
ER_UNUSED1638,
ER_UNUSED1639,
ER_UNUSED1640,
ER_UNUSED1641,
ER_UNUSED1642,
ER_UNUSED1643,
ER_UNUSED1644,
ER_UNUSED1645,
ER_UNUSED1646,
ER_UNUSED1647,
ER_UNUSED1648,
ER_UNUSED1649,
ER_UNUSED1650,
ER_UNUSED1651,
ER_UNUSED1652,
ER_UNUSED1653,
ER_UNUSED1654,
ER_UNUSED1655,
ER_UNUSED1656,
ER_UNUSED1657,
ER_UNUSED1658,
ER_UNUSED1659,
ER_UNUSED1660,
ER_UNUSED1661,
ER_UNUSED1662,
ER_UNUSED1663,
ER_UNUSED1664,
ER_UNUSED1665,
ER_UNUSED1666,
ER_UNUSED1667,
ER_UNUSED1668,
ER_UNUSED1669,
ER_UNUSED1670,
ER_UNUSED1671,
ER_UNUSED1672,
ER_UNUSED1673,
ER_UNUSED1674,
ER_UNUSED1675,
ER_UNUSED1676,
ER_UNUSED1677,
ER_UNUSED1678,
ER_UNUSED1679,
ER_UNUSED1680,
ER_UNUSED1681,
ER_UNUSED1682,
ER_UNUSED1683,
ER_UNUSED1684,
ER_INVALID_UNIX_TIMESTAMP_VALUE,
ER_INVALID_DATETIME_VALUE,
ER_INVALID_NULL_ARGUMENT,
ER_UNUSED1688,
ER_ARGUMENT_OUT_OF_RANGE,
ER_UNUSED1690,
ER_INVALID_ENUM_VALUE,
ER_NO_PRIMARY_KEY_ON_REPLICATED_TABLE,
ER_CORRUPT_TABLE_DEFINITION,
ER_SCHEMA_DOES_NOT_EXIST,
ER_ALTER_SCHEMA,
ER_DROP_SCHEMA,
ER_USE_SQL_BIG_RESULT,
ER_UNKNOWN_ENGINE_OPTION,
ER_UNKNOWN_SCHEMA_OPTION,
ER_EVENT_OBSERVER_PLUGIN,
ER_CORRUPT_SCHEMA_DEFINITION,
ER_OUT_OF_GLOBAL_SORTMEMORY,
ER_OUT_OF_GLOBAL_JOINMEMORY,
ER_OUT_OF_GLOBAL_READRNDMEMORY,
ER_OUT_OF_GLOBAL_READMEMORY,
ER_ERROR_LAST= ER_OUT_OF_GLOBAL_READMEMORY
};
enum drizzle_exit_codes {
EXIT_UNSPECIFIED_ERROR = 1,
EXIT_UNKNOWN_OPTION,
EXIT_AMBIGUOUS_OPTION,
EXIT_NO_ARGUMENT_ALLOWED,
EXIT_ARGUMENT_REQUIRED,
EXIT_VAR_PREFIX_NOT_UNIQUE,
EXIT_UNKNOWN_VARIABLE,
EXIT_OUT_OF_MEMORY,
EXIT_UNKNOWN_SUFFIX,
EXIT_NO_PTR_TO_VARIABLE,
EXIT_CANNOT_CONNECT_TO_SERVICE,
EXIT_OPTION_DISABLED,
EXIT_ARGUMENT_INVALID
};
} /* namespace drizzled */
#endif /* DRIZZLED_ENUM_H */
|