1
/* Copyright (c) 2005 PrimeBase Technologies GmbH
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation; either version 2 of the License, or
8
* (at your option) any later version.
10
* This program is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
15
* You should have received a copy of the GNU General Public License
16
* along with this program; if not, write to the Free Software
17
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19
* Author: Paul McCullagh
25
#define XT_SYSTEM_ERROR -1
26
#define XT_ERR_STACK_OVERFLOW -2
27
#define XT_ASSERTION_FAILURE -3
28
#define XT_SIGNAL_CAUGHT -4
29
#define XT_ERR_JUMP_OVERFLOW -5
30
#define XT_ERR_BAD_HANDLE -6
31
#define XT_ERR_TABLE_EXISTS -7
32
#define XT_ERR_NAME_TOO_LONG -8
33
#define XT_ERR_TABLE_NOT_FOUND -9
34
#define XT_ERR_SESSION_NOT_FOUND -10
35
#define XT_ERR_BAD_ADDRESS -11
36
#define XT_ERR_UNKNOWN_SERVICE -12
37
#define XT_ERR_UNKNOWN_HOST -13
38
#define XT_ERR_TOKEN_EXPECTED -14
39
#define XT_ERR_PROPERTY_REQUIRED -15
40
#define XT_ERR_BAD_XACTION -16
41
#define XT_ERR_INVALID_SLOT -17
42
#define XT_ERR_DEADLOCK -18
43
#define XT_ERR_CANNOT_CHANGE_DB -19
44
#define XT_ERR_ILLEGAL_CHAR -20
45
#define XT_ERR_UNTERMINATED_STRING -21
46
#define XT_ERR_SYNTAX -22
47
#define XT_ERR_ILLEGAL_INSTRUCTION -23
48
#define XT_ERR_OUT_OF_BOUNDS -24
49
#define XT_ERR_STACK_UNDERFLOW -25
50
#define XT_ERR_TYPE_MISMATCH -26
51
#define XT_ERR_ILLEGAL_TYPE -27
52
#define XT_ERR_ID_TOO_LONG -28
53
#define XT_ERR_TYPE_OVERFLOW -29
54
#define XT_ERR_TABLE_IN_USE -30
55
#define XT_ERR_NO_DATABASE_IN_USE -31
56
#define XT_ERR_CANNOT_RESOLVE_TYPE -32
57
#define XT_ERR_BAD_INDEX_DESC -33
58
#define XT_ERR_WRONG_NO_OF_VALUES -34
59
#define XT_ERR_CANNOT_OUTPUT_VALUE -35
60
#define XT_ERR_COLUMN_NOT_FOUND -36
61
#define XT_ERR_NOT_IMPLEMENTED -37
62
#define XT_ERR_UNEXPECTED_EOS -38
63
#define XT_ERR_BAD_TOKEN -39
64
#define XT_ERR_RES_STACK_OVERFLOW -40
65
#define XT_ERR_BAD_INDEX_TYPE -41
66
#define XT_ERR_INDEX_EXISTS -42
67
#define XT_ERR_INDEX_STRUC_EXISTS -43
68
#define XT_ERR_INDEX_NOT_FOUND -44
69
#define XT_ERR_INDEX_CORRUPT -45
70
#define XT_ERR_DUPLICATE_KEY -46
71
#define XT_ERR_TYPE_NOT_SUPPORTED -47
72
#define XT_ERR_BAD_TABLE_VERSION -48
73
#define XT_ERR_BAD_RECORD_FORMAT -49
74
#define XT_ERR_BAD_EXT_RECORD -50
75
#define XT_ERR_RECORD_CHANGED -51 // Record has already been updated by some other transaction
76
#define XT_ERR_XLOG_WAS_CORRUPTED -52
77
#define XT_ERR_NO_DICTIONARY -53
78
#define XT_ERR_TOO_MANY_TABLES -54 // Maximum number of table exceeded.
79
#define XT_ERR_KEY_TOO_LARGE -55 // Maximum size of an index key exceeded
80
#define XT_ERR_MULTIPLE_DATABASES -56
81
#define XT_ERR_NO_TRANSACTION -57
82
#define XT_ERR_A_EXPECTED_NOT_B -58
83
#define XT_ERR_NO_MATCHING_INDEX -59
84
#define XT_ERR_TABLE_LOCKED -60
85
#define XT_ERR_NO_REFERENCED_ROW -61
86
#define XT_ERR_BAD_DICTIONARY -62
87
#define XT_ERR_LOADING_MYSQL_DIC -63
88
#define XT_ERR_ROW_IS_REFERENCED -64
89
#define XT_ERR_COLUMN_IS_NOT_NULL -65
90
#define XT_ERR_INCORRECT_NO_OF_COLS -66
91
#define XT_ERR_FK_ON_TEMP_TABLE -67
92
#define XT_ERR_REF_TABLE_NOT_FOUND -68
93
#define XT_ERR_REF_TYPE_WRONG -69
94
#define XT_ERR_DUPLICATE_FKEY -70
95
#define XT_ERR_INDEX_FILE_TO_LARGE -71
96
#define XT_ERR_UPGRADE_TABLE -72
97
#define XT_ERR_INDEX_NEW_VERSION -73
98
#define XT_ERR_LOCK_TIMEOUT -74
99
#define XT_ERR_CONVERSION -75
100
#define XT_ERR_NO_ROWS -76
101
#define XT_ERR_MYSQL_ERROR -77
102
#define XT_ERR_DATA_LOG_NOT_FOUND -78
103
#define XT_ERR_LOG_MAX_EXCEEDED -79
104
#define XT_ERR_MAX_ROW_COUNT -80
105
#define XT_ERR_FILE_TOO_LONG -81
106
#define XT_ERR_BAD_IND_BLOCK_SIZE -82
107
#define XT_ERR_INDEX_CORRUPTED -83
108
#define XT_ERR_NO_INDEX_CACHE -84
109
#define XT_ERR_INDEX_LOG_CORRUPT -85
110
#define XT_ERR_TOO_MANY_THREADS -86
111
#define XT_ERR_TOO_MANY_WAITERS -87
112
#define XT_ERR_INDEX_OLD_VERSION -88
113
#define XT_ERR_PBXT_TABLE_EXISTS -89
114
#define XT_ERR_SERVER_RUNNING -90
115
#define XT_ERR_INDEX_MISSING -91
116
#define XT_ERR_RECORD_DELETED -92
117
#define XT_ERR_NEW_TYPE_OF_XLOG -93
118
#define XT_ERR_NO_BEFORE_IMAGE -94
119
#define XT_ERR_FK_REF_TEMP_TABLE -95
120
#define XT_ERR_FILE_OP_NOT_SUPP -96
121
#define XT_ERR_INDEX_NOT_RECOVERED -97
122
#define XT_ERR_MYSQL_SHUTDOWN -98
123
#define XT_ERR_MYSQL_NO_THREAD -99
124
#define XT_ERR_BUFFER_TOO_SMALL -100
125
#define XT_ERR_BAD_BACKUP_FORMAT -101
126
#define XT_ERR_PBXT_NOT_INSTALLED -102
127
#define XT_ERR_LOG_HEADER_CORRUPT -103
130
#define XT_ENOMEM ERROR_NOT_ENOUGH_MEMORY
131
#define XT_EAGAIN ERROR_RETRY
132
#define XT_EBUSY ERROR_BUSY
134
#define XT_ENOMEM ENOMEM
135
#define XT_EAGAIN EAGAIN
136
#define XT_EBUSY EBUSY