@squiz/db-lib 1.2.1-alpha.106 → 1.2.1-alpha.87

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,268 +0,0 @@
1
- export declare enum PostgresErrorCode {
2
- SUCCESSFUL_COMPLETION = "00000",
3
- WARNING = "01000",
4
- WARNING_DYNAMIC_RESULT_SETS_RETURNED = "0100C",
5
- WARNING_IMPLICIT_ZERO_BIT_PADDING = "01008",
6
- WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION = "01003",
7
- WARNING_PRIVILEGE_NOT_GRANTED = "01007",
8
- WARNING_PRIVILEGE_NOT_REVOKED = "01006",
9
- WARNING_STRING_DATA_RIGHT_TRUNCATION = "01004",
10
- WARNING_DEPRECATED_FEATURE = "01P01",
11
- NO_DATA = "02000",
12
- NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED = "02001",
13
- SQL_STATEMENT_NOT_YET_COMPLETE = "03000",
14
- CONNECTION_EXCEPTION = "08000",
15
- CONNECTION_DOES_NOT_EXIST = "08003",
16
- CONNECTION_FAILURE = "08006",
17
- SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION = "08001",
18
- SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION = "08004",
19
- TRANSACTION_RESOLUTION_UNKNOWN = "08007",
20
- PROTOCOL_VIOLATION = "08P01",
21
- TRIGGERED_ACTION_EXCEPTION = "09000",
22
- FEATURE_NOT_SUPPORTED = "0A000",
23
- INVALID_TRANSACTION_INITIATION = "0B000",
24
- LOCATOR_EXCEPTION = "0F000",
25
- L_E_INVALID_SPECIFICATION = "0F001",
26
- INVALID_GRANTOR = "0L000",
27
- INVALID_GRANT_OPERATION = "0LP01",
28
- INVALID_ROLE_SPECIFICATION = "0P000",
29
- DIAGNOSTICS_EXCEPTION = "0Z000",
30
- STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER = "0Z002",
31
- CASE_NOT_FOUND = "20000",
32
- CARDINALITY_VIOLATION = "21000",
33
- DATA_EXCEPTION = "22000",
34
- ARRAY_ELEMENT_ERROR = "2202E",
35
- ARRAY_SUBSCRIPT_ERROR = "2202E",
36
- CHARACTER_NOT_IN_REPERTOIRE = "22021",
37
- DATETIME_FIELD_OVERFLOW = "22008",
38
- DATETIME_VALUE_OUT_OF_RANGE = "22008",
39
- DIVISION_BY_ZERO = "22012",
40
- ERROR_IN_ASSIGNMENT = "22005",
41
- ESCAPE_CHARACTER_CONFLICT = "2200B",
42
- INDICATOR_OVERFLOW = "22022",
43
- INTERVAL_FIELD_OVERFLOW = "22015",
44
- INVALID_ARGUMENT_FOR_LOG = "2201E",
45
- INVALID_ARGUMENT_FOR_NTILE = "22014",
46
- INVALID_ARGUMENT_FOR_NTH_VALUE = "22016",
47
- INVALID_ARGUMENT_FOR_POWER_FUNCTION = "2201F",
48
- INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION = "2201G",
49
- INVALID_CHARACTER_VALUE_FOR_CAST = "22018",
50
- INVALID_DATETIME_FORMAT = "22007",
51
- INVALID_ESCAPE_CHARACTER = "22019",
52
- INVALID_ESCAPE_OCTET = "2200D",
53
- INVALID_ESCAPE_SEQUENCE = "22025",
54
- NONSTANDARD_USE_OF_ESCAPE_CHARACTER = "22P06",
55
- INVALID_INDICATOR_PARAMETER_VALUE = "22010",
56
- INVALID_PARAMETER_VALUE = "22023",
57
- INVALID_PRECEDING_OR_FOLLOWING_SIZE = "22013",
58
- INVALID_REGULAR_EXPRESSION = "2201B",
59
- INVALID_ROW_COUNT_IN_LIMIT_CLAUSE = "2201W",
60
- INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE = "2201X",
61
- INVALID_TABLESAMPLE_ARGUMENT = "2202H",
62
- INVALID_TABLESAMPLE_REPEAT = "2202G",
63
- INVALID_TIME_ZONE_DISPLACEMENT_VALUE = "22009",
64
- INVALID_USE_OF_ESCAPE_CHARACTER = "2200C",
65
- MOST_SPECIFIC_TYPE_MISMATCH = "2200G",
66
- NULL_VALUE_NOT_ALLOWED = "22004",
67
- NULL_VALUE_NO_INDICATOR_PARAMETER = "22002",
68
- NUMERIC_VALUE_OUT_OF_RANGE = "22003",
69
- SEQUENCE_GENERATOR_LIMIT_EXCEEDED = "2200H",
70
- STRING_DATA_LENGTH_MISMATCH = "22026",
71
- STRING_DATA_RIGHT_TRUNCATION = "22001",
72
- SUBSTRING_ERROR = "22011",
73
- TRIM_ERROR = "22027",
74
- UNTERMINATED_C_STRING = "22024",
75
- ZERO_LENGTH_CHARACTER_STRING = "2200F",
76
- FLOATING_POINT_EXCEPTION = "22P01",
77
- INVALID_TEXT_REPRESENTATION = "22P02",
78
- INVALID_BINARY_REPRESENTATION = "22P03",
79
- BAD_COPY_FILE_FORMAT = "22P04",
80
- UNTRANSLATABLE_CHARACTER = "22P05",
81
- NOT_AN_XML_DOCUMENT = "2200L",
82
- INVALID_XML_DOCUMENT = "2200M",
83
- INVALID_XML_CONTENT = "2200N",
84
- INVALID_XML_COMMENT = "2200S",
85
- INVALID_XML_PROCESSING_INSTRUCTION = "2200T",
86
- DUPLICATE_JSON_OBJECT_KEY_VALUE = "22030",
87
- INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION = "22031",
88
- INVALID_JSON_TEXT = "22032",
89
- INVALID_SQL_JSON_SUBSCRIPT = "22033",
90
- MORE_THAN_ONE_SQL_JSON_ITEM = "22034",
91
- NO_SQL_JSON_ITEM = "22035",
92
- NON_NUMERIC_SQL_JSON_ITEM = "22036",
93
- NON_UNIQUE_KEYS_IN_A_JSON_OBJECT = "22037",
94
- SINGLETON_SQL_JSON_ITEM_REQUIRED = "22038",
95
- SQL_JSON_ARRAY_NOT_FOUND = "22039",
96
- SQL_JSON_MEMBER_NOT_FOUND = "2203A",
97
- SQL_JSON_NUMBER_NOT_FOUND = "2203B",
98
- SQL_JSON_OBJECT_NOT_FOUND = "2203C",
99
- TOO_MANY_JSON_ARRAY_ELEMENTS = "2203D",
100
- TOO_MANY_JSON_OBJECT_MEMBERS = "2203E",
101
- SQL_JSON_SCALAR_REQUIRED = "2203F",
102
- SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE = "2203G",
103
- INTEGRITY_CONSTRAINT_VIOLATION = "23000",
104
- RESTRICT_VIOLATION = "23001",
105
- NOT_NULL_VIOLATION = "23502",
106
- FOREIGN_KEY_VIOLATION = "23503",
107
- UNIQUE_VIOLATION = "23505",
108
- CHECK_VIOLATION = "23514",
109
- EXCLUSION_VIOLATION = "23P01",
110
- INVALID_CURSOR_STATE = "24000",
111
- INVALID_TRANSACTION_STATE = "25000",
112
- ACTIVE_SQL_TRANSACTION = "25001",
113
- BRANCH_TRANSACTION_ALREADY_ACTIVE = "25002",
114
- HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL = "25008",
115
- INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION = "25003",
116
- INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION = "25004",
117
- NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION = "25005",
118
- READ_ONLY_SQL_TRANSACTION = "25006",
119
- SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED = "25007",
120
- NO_ACTIVE_SQL_TRANSACTION = "25P01",
121
- IN_FAILED_SQL_TRANSACTION = "25P02",
122
- IDLE_IN_TRANSACTION_SESSION_TIMEOUT = "25P03",
123
- INVALID_SQL_STATEMENT_NAME = "26000",
124
- TRIGGERED_DATA_CHANGE_VIOLATION = "27000",
125
- INVALID_AUTHORIZATION_SPECIFICATION = "28000",
126
- INVALID_PASSWORD = "28P01",
127
- DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST = "2B000",
128
- DEPENDENT_OBJECTS_STILL_EXIST = "2BP01",
129
- INVALID_TRANSACTION_TERMINATION = "2D000",
130
- SQL_ROUTINE_EXCEPTION = "2F000",
131
- S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT = "2F005",
132
- S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED = "2F002",
133
- S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED = "2F003",
134
- S_R_E_READING_SQL_DATA_NOT_PERMITTED = "2F004",
135
- INVALID_CURSOR_NAME = "34000",
136
- EXTERNAL_ROUTINE_EXCEPTION = "38000",
137
- E_R_E_CONTAINING_SQL_NOT_PERMITTED = "38001",
138
- E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED = "38002",
139
- E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED = "38003",
140
- E_R_E_READING_SQL_DATA_NOT_PERMITTED = "38004",
141
- EXTERNAL_ROUTINE_INVOCATION_EXCEPTION = "39000",
142
- E_R_I_E_INVALID_SQLSTATE_RETURNED = "39001",
143
- E_R_I_E_NULL_VALUE_NOT_ALLOWED = "39004",
144
- E_R_I_E_TRIGGER_PROTOCOL_VIOLATED = "39P01",
145
- E_R_I_E_SRF_PROTOCOL_VIOLATED = "39P02",
146
- E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED = "39P03",
147
- SAVEPOINT_EXCEPTION = "3B000",
148
- S_E_INVALID_SPECIFICATION = "3B001",
149
- INVALID_CATALOG_NAME = "3D000",
150
- INVALID_SCHEMA_NAME = "3F000",
151
- TRANSACTION_ROLLBACK = "40000",
152
- T_R_INTEGRITY_CONSTRAINT_VIOLATION = "40002",
153
- T_R_SERIALIZATION_FAILURE = "40001",
154
- T_R_STATEMENT_COMPLETION_UNKNOWN = "40003",
155
- T_R_DEADLOCK_DETECTED = "40P01",
156
- SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION = "42000",
157
- SYNTAX_ERROR = "42601",
158
- INSUFFICIENT_PRIVILEGE = "42501",
159
- CANNOT_COERCE = "42846",
160
- GROUPING_ERROR = "42803",
161
- WINDOWING_ERROR = "42P20",
162
- INVALID_RECURSION = "42P19",
163
- INVALID_FOREIGN_KEY = "42830",
164
- INVALID_NAME = "42602",
165
- NAME_TOO_LONG = "42622",
166
- RESERVED_NAME = "42939",
167
- DATATYPE_MISMATCH = "42804",
168
- INDETERMINATE_DATATYPE = "42P18",
169
- COLLATION_MISMATCH = "42P21",
170
- INDETERMINATE_COLLATION = "42P22",
171
- WRONG_OBJECT_TYPE = "42809",
172
- GENERATED_ALWAYS = "428C9",
173
- UNDEFINED_COLUMN = "42703",
174
- UNDEFINED_CURSOR = "34000",
175
- UNDEFINED_DATABASE = "3D000",
176
- UNDEFINED_FUNCTION = "42883",
177
- UNDEFINED_PSTATEMENT = "26000",
178
- UNDEFINED_SCHEMA = "3F000",
179
- UNDEFINED_TABLE = "42P01",
180
- UNDEFINED_PARAMETER = "42P02",
181
- UNDEFINED_OBJECT = "42704",
182
- DUPLICATE_COLUMN = "42701",
183
- DUPLICATE_CURSOR = "42P03",
184
- DUPLICATE_DATABASE = "42P04",
185
- DUPLICATE_FUNCTION = "42723",
186
- DUPLICATE_PSTATEMENT = "42P05",
187
- DUPLICATE_SCHEMA = "42P06",
188
- DUPLICATE_TABLE = "42P07",
189
- DUPLICATE_ALIAS = "42712",
190
- DUPLICATE_OBJECT = "42710",
191
- AMBIGUOUS_COLUMN = "42702",
192
- AMBIGUOUS_FUNCTION = "42725",
193
- AMBIGUOUS_PARAMETER = "42P08",
194
- AMBIGUOUS_ALIAS = "42P09",
195
- INVALID_COLUMN_REFERENCE = "42P10",
196
- INVALID_COLUMN_DEFINITION = "42611",
197
- INVALID_CURSOR_DEFINITION = "42P11",
198
- INVALID_DATABASE_DEFINITION = "42P12",
199
- INVALID_FUNCTION_DEFINITION = "42P13",
200
- INVALID_PSTATEMENT_DEFINITION = "42P14",
201
- INVALID_SCHEMA_DEFINITION = "42P15",
202
- INVALID_TABLE_DEFINITION = "42P16",
203
- INVALID_OBJECT_DEFINITION = "42P17",
204
- WITH_CHECK_OPTION_VIOLATION = "44000",
205
- INSUFFICIENT_RESOURCES = "53000",
206
- DISK_FULL = "53100",
207
- OUT_OF_MEMORY = "53200",
208
- TOO_MANY_CONNECTIONS = "53300",
209
- CONFIGURATION_LIMIT_EXCEEDED = "53400",
210
- PROGRAM_LIMIT_EXCEEDED = "54000",
211
- STATEMENT_TOO_COMPLEX = "54001",
212
- TOO_MANY_COLUMNS = "54011",
213
- TOO_MANY_ARGUMENTS = "54023",
214
- OBJECT_NOT_IN_PREREQUISITE_STATE = "55000",
215
- OBJECT_IN_USE = "55006",
216
- CANT_CHANGE_RUNTIME_PARAM = "55P02",
217
- LOCK_NOT_AVAILABLE = "55P03",
218
- UNSAFE_NEW_ENUM_VALUE_USAGE = "55P04",
219
- OPERATOR_INTERVENTION = "57000",
220
- QUERY_CANCELED = "57014",
221
- ADMIN_SHUTDOWN = "57P01",
222
- CRASH_SHUTDOWN = "57P02",
223
- CANNOT_CONNECT_NOW = "57P03",
224
- DATABASE_DROPPED = "57P04",
225
- IDLE_SESSION_TIMEOUT = "57P05",
226
- SYSTEM_ERROR = "58000",
227
- IO_ERROR = "58030",
228
- UNDEFINED_FILE = "58P01",
229
- DUPLICATE_FILE = "58P02",
230
- SNAPSHOT_TOO_OLD = "72000",
231
- CONFIG_FILE_ERROR = "F0000",
232
- LOCK_FILE_EXISTS = "F0001",
233
- FDW_ERROR = "HV000",
234
- FDW_COLUMN_NAME_NOT_FOUND = "HV005",
235
- FDW_DYNAMIC_PARAMETER_VALUE_NEEDED = "HV002",
236
- FDW_FUNCTION_SEQUENCE_ERROR = "HV010",
237
- FDW_INCONSISTENT_DESCRIPTOR_INFORMATION = "HV021",
238
- FDW_INVALID_ATTRIBUTE_VALUE = "HV024",
239
- FDW_INVALID_COLUMN_NAME = "HV007",
240
- FDW_INVALID_COLUMN_NUMBER = "HV008",
241
- FDW_INVALID_DATA_TYPE = "HV004",
242
- FDW_INVALID_DATA_TYPE_DESCRIPTORS = "HV006",
243
- FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER = "HV091",
244
- FDW_INVALID_HANDLE = "HV00B",
245
- FDW_INVALID_OPTION_INDEX = "HV00C",
246
- FDW_INVALID_OPTION_NAME = "HV00D",
247
- FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH = "HV090",
248
- FDW_INVALID_STRING_FORMAT = "HV00A",
249
- FDW_INVALID_USE_OF_NULL_POINTER = "HV009",
250
- FDW_TOO_MANY_HANDLES = "HV014",
251
- FDW_OUT_OF_MEMORY = "HV001",
252
- FDW_NO_SCHEMAS = "HV00P",
253
- FDW_OPTION_NAME_NOT_FOUND = "HV00J",
254
- FDW_REPLY_HANDLE = "HV00K",
255
- FDW_SCHEMA_NOT_FOUND = "HV00Q",
256
- FDW_TABLE_NOT_FOUND = "HV00R",
257
- FDW_UNABLE_TO_CREATE_EXECUTION = "HV00L",
258
- FDW_UNABLE_TO_CREATE_REPLY = "HV00M",
259
- FDW_UNABLE_TO_ESTABLISH_CONNECTION = "HV00N",
260
- PLPGSQL_ERROR = "P0000",
261
- RAISE_EXCEPTION = "P0001",
262
- NO_DATA_FOUND = "P0002",
263
- TOO_MANY_ROWS = "P0003",
264
- ASSERT_FAILURE = "P0004",
265
- INTERNAL_ERROR = "XX000",
266
- DATA_CORRUPTED = "XX001",
267
- INDEX_CORRUPTED = "XX002"
268
- }
@@ -1,270 +0,0 @@
1
- // See https://github.com/postgres/postgres/blob/master/src/backend/utils/errcodes.txt
2
-
3
- export enum PostgresErrorCode {
4
- SUCCESSFUL_COMPLETION = '00000',
5
- WARNING = '01000',
6
- WARNING_DYNAMIC_RESULT_SETS_RETURNED = '0100C',
7
- WARNING_IMPLICIT_ZERO_BIT_PADDING = '01008',
8
- WARNING_NULL_VALUE_ELIMINATED_IN_SET_FUNCTION = '01003',
9
- WARNING_PRIVILEGE_NOT_GRANTED = '01007',
10
- WARNING_PRIVILEGE_NOT_REVOKED = '01006',
11
- WARNING_STRING_DATA_RIGHT_TRUNCATION = '01004',
12
- WARNING_DEPRECATED_FEATURE = '01P01',
13
- NO_DATA = '02000',
14
- NO_ADDITIONAL_DYNAMIC_RESULT_SETS_RETURNED = '02001',
15
- SQL_STATEMENT_NOT_YET_COMPLETE = '03000',
16
- CONNECTION_EXCEPTION = '08000',
17
- CONNECTION_DOES_NOT_EXIST = '08003',
18
- CONNECTION_FAILURE = '08006',
19
- SQLCLIENT_UNABLE_TO_ESTABLISH_SQLCONNECTION = '08001',
20
- SQLSERVER_REJECTED_ESTABLISHMENT_OF_SQLCONNECTION = '08004',
21
- TRANSACTION_RESOLUTION_UNKNOWN = '08007',
22
- PROTOCOL_VIOLATION = '08P01',
23
- TRIGGERED_ACTION_EXCEPTION = '09000',
24
- FEATURE_NOT_SUPPORTED = '0A000',
25
- INVALID_TRANSACTION_INITIATION = '0B000',
26
- LOCATOR_EXCEPTION = '0F000',
27
- L_E_INVALID_SPECIFICATION = '0F001',
28
- INVALID_GRANTOR = '0L000',
29
- INVALID_GRANT_OPERATION = '0LP01',
30
- INVALID_ROLE_SPECIFICATION = '0P000',
31
- DIAGNOSTICS_EXCEPTION = '0Z000',
32
- STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER = '0Z002',
33
- CASE_NOT_FOUND = '20000',
34
- CARDINALITY_VIOLATION = '21000',
35
- DATA_EXCEPTION = '22000',
36
- ARRAY_ELEMENT_ERROR = '2202E',
37
- ARRAY_SUBSCRIPT_ERROR = '2202E',
38
- CHARACTER_NOT_IN_REPERTOIRE = '22021',
39
- DATETIME_FIELD_OVERFLOW = '22008',
40
- DATETIME_VALUE_OUT_OF_RANGE = '22008',
41
- DIVISION_BY_ZERO = '22012',
42
- ERROR_IN_ASSIGNMENT = '22005',
43
- ESCAPE_CHARACTER_CONFLICT = '2200B',
44
- INDICATOR_OVERFLOW = '22022',
45
- INTERVAL_FIELD_OVERFLOW = '22015',
46
- INVALID_ARGUMENT_FOR_LOG = '2201E',
47
- INVALID_ARGUMENT_FOR_NTILE = '22014',
48
- INVALID_ARGUMENT_FOR_NTH_VALUE = '22016',
49
- INVALID_ARGUMENT_FOR_POWER_FUNCTION = '2201F',
50
- INVALID_ARGUMENT_FOR_WIDTH_BUCKET_FUNCTION = '2201G',
51
- INVALID_CHARACTER_VALUE_FOR_CAST = '22018',
52
- INVALID_DATETIME_FORMAT = '22007',
53
- INVALID_ESCAPE_CHARACTER = '22019',
54
- INVALID_ESCAPE_OCTET = '2200D',
55
- INVALID_ESCAPE_SEQUENCE = '22025',
56
- NONSTANDARD_USE_OF_ESCAPE_CHARACTER = '22P06',
57
- INVALID_INDICATOR_PARAMETER_VALUE = '22010',
58
- INVALID_PARAMETER_VALUE = '22023',
59
- INVALID_PRECEDING_OR_FOLLOWING_SIZE = '22013',
60
- INVALID_REGULAR_EXPRESSION = '2201B',
61
- INVALID_ROW_COUNT_IN_LIMIT_CLAUSE = '2201W',
62
- INVALID_ROW_COUNT_IN_RESULT_OFFSET_CLAUSE = '2201X',
63
- INVALID_TABLESAMPLE_ARGUMENT = '2202H',
64
- INVALID_TABLESAMPLE_REPEAT = '2202G',
65
- INVALID_TIME_ZONE_DISPLACEMENT_VALUE = '22009',
66
- INVALID_USE_OF_ESCAPE_CHARACTER = '2200C',
67
- MOST_SPECIFIC_TYPE_MISMATCH = '2200G',
68
- NULL_VALUE_NOT_ALLOWED = '22004',
69
- NULL_VALUE_NO_INDICATOR_PARAMETER = '22002',
70
- NUMERIC_VALUE_OUT_OF_RANGE = '22003',
71
- SEQUENCE_GENERATOR_LIMIT_EXCEEDED = '2200H',
72
- STRING_DATA_LENGTH_MISMATCH = '22026',
73
- STRING_DATA_RIGHT_TRUNCATION = '22001',
74
- SUBSTRING_ERROR = '22011',
75
- TRIM_ERROR = '22027',
76
- UNTERMINATED_C_STRING = '22024',
77
- ZERO_LENGTH_CHARACTER_STRING = '2200F',
78
- FLOATING_POINT_EXCEPTION = '22P01',
79
- INVALID_TEXT_REPRESENTATION = '22P02',
80
- INVALID_BINARY_REPRESENTATION = '22P03',
81
- BAD_COPY_FILE_FORMAT = '22P04',
82
- UNTRANSLATABLE_CHARACTER = '22P05',
83
- NOT_AN_XML_DOCUMENT = '2200L',
84
- INVALID_XML_DOCUMENT = '2200M',
85
- INVALID_XML_CONTENT = '2200N',
86
- INVALID_XML_COMMENT = '2200S',
87
- INVALID_XML_PROCESSING_INSTRUCTION = '2200T',
88
- DUPLICATE_JSON_OBJECT_KEY_VALUE = '22030',
89
- INVALID_ARGUMENT_FOR_SQL_JSON_DATETIME_FUNCTION = '22031',
90
- INVALID_JSON_TEXT = '22032',
91
- INVALID_SQL_JSON_SUBSCRIPT = '22033',
92
- MORE_THAN_ONE_SQL_JSON_ITEM = '22034',
93
- NO_SQL_JSON_ITEM = '22035',
94
- NON_NUMERIC_SQL_JSON_ITEM = '22036',
95
- NON_UNIQUE_KEYS_IN_A_JSON_OBJECT = '22037',
96
- SINGLETON_SQL_JSON_ITEM_REQUIRED = '22038',
97
- SQL_JSON_ARRAY_NOT_FOUND = '22039',
98
- SQL_JSON_MEMBER_NOT_FOUND = '2203A',
99
- SQL_JSON_NUMBER_NOT_FOUND = '2203B',
100
- SQL_JSON_OBJECT_NOT_FOUND = '2203C',
101
- TOO_MANY_JSON_ARRAY_ELEMENTS = '2203D',
102
- TOO_MANY_JSON_OBJECT_MEMBERS = '2203E',
103
- SQL_JSON_SCALAR_REQUIRED = '2203F',
104
- SQL_JSON_ITEM_CANNOT_BE_CAST_TO_TARGET_TYPE = '2203G',
105
- INTEGRITY_CONSTRAINT_VIOLATION = '23000',
106
- RESTRICT_VIOLATION = '23001',
107
- NOT_NULL_VIOLATION = '23502',
108
- FOREIGN_KEY_VIOLATION = '23503',
109
- UNIQUE_VIOLATION = '23505',
110
- CHECK_VIOLATION = '23514',
111
- EXCLUSION_VIOLATION = '23P01',
112
- INVALID_CURSOR_STATE = '24000',
113
- INVALID_TRANSACTION_STATE = '25000',
114
- ACTIVE_SQL_TRANSACTION = '25001',
115
- BRANCH_TRANSACTION_ALREADY_ACTIVE = '25002',
116
- HELD_CURSOR_REQUIRES_SAME_ISOLATION_LEVEL = '25008',
117
- INAPPROPRIATE_ACCESS_MODE_FOR_BRANCH_TRANSACTION = '25003',
118
- INAPPROPRIATE_ISOLATION_LEVEL_FOR_BRANCH_TRANSACTION = '25004',
119
- NO_ACTIVE_SQL_TRANSACTION_FOR_BRANCH_TRANSACTION = '25005',
120
- READ_ONLY_SQL_TRANSACTION = '25006',
121
- SCHEMA_AND_DATA_STATEMENT_MIXING_NOT_SUPPORTED = '25007',
122
- NO_ACTIVE_SQL_TRANSACTION = '25P01',
123
- IN_FAILED_SQL_TRANSACTION = '25P02',
124
- IDLE_IN_TRANSACTION_SESSION_TIMEOUT = '25P03',
125
- INVALID_SQL_STATEMENT_NAME = '26000',
126
- TRIGGERED_DATA_CHANGE_VIOLATION = '27000',
127
- INVALID_AUTHORIZATION_SPECIFICATION = '28000',
128
- INVALID_PASSWORD = '28P01',
129
- DEPENDENT_PRIVILEGE_DESCRIPTORS_STILL_EXIST = '2B000',
130
- DEPENDENT_OBJECTS_STILL_EXIST = '2BP01',
131
- INVALID_TRANSACTION_TERMINATION = '2D000',
132
- SQL_ROUTINE_EXCEPTION = '2F000',
133
- S_R_E_FUNCTION_EXECUTED_NO_RETURN_STATEMENT = '2F005',
134
- S_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED = '2F002',
135
- S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED = '2F003',
136
- S_R_E_READING_SQL_DATA_NOT_PERMITTED = '2F004',
137
- INVALID_CURSOR_NAME = '34000',
138
- EXTERNAL_ROUTINE_EXCEPTION = '38000',
139
- E_R_E_CONTAINING_SQL_NOT_PERMITTED = '38001',
140
- E_R_E_MODIFYING_SQL_DATA_NOT_PERMITTED = '38002',
141
- E_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED = '38003',
142
- E_R_E_READING_SQL_DATA_NOT_PERMITTED = '38004',
143
- EXTERNAL_ROUTINE_INVOCATION_EXCEPTION = '39000',
144
- E_R_I_E_INVALID_SQLSTATE_RETURNED = '39001',
145
- E_R_I_E_NULL_VALUE_NOT_ALLOWED = '39004',
146
- E_R_I_E_TRIGGER_PROTOCOL_VIOLATED = '39P01',
147
- E_R_I_E_SRF_PROTOCOL_VIOLATED = '39P02',
148
- E_R_I_E_EVENT_TRIGGER_PROTOCOL_VIOLATED = '39P03',
149
- SAVEPOINT_EXCEPTION = '3B000',
150
- S_E_INVALID_SPECIFICATION = '3B001',
151
- INVALID_CATALOG_NAME = '3D000',
152
- INVALID_SCHEMA_NAME = '3F000',
153
- TRANSACTION_ROLLBACK = '40000',
154
- T_R_INTEGRITY_CONSTRAINT_VIOLATION = '40002',
155
- T_R_SERIALIZATION_FAILURE = '40001',
156
- T_R_STATEMENT_COMPLETION_UNKNOWN = '40003',
157
- T_R_DEADLOCK_DETECTED = '40P01',
158
- SYNTAX_ERROR_OR_ACCESS_RULE_VIOLATION = '42000',
159
- SYNTAX_ERROR = '42601',
160
- INSUFFICIENT_PRIVILEGE = '42501',
161
- CANNOT_COERCE = '42846',
162
- GROUPING_ERROR = '42803',
163
- WINDOWING_ERROR = '42P20',
164
- INVALID_RECURSION = '42P19',
165
- INVALID_FOREIGN_KEY = '42830',
166
- INVALID_NAME = '42602',
167
- NAME_TOO_LONG = '42622',
168
- RESERVED_NAME = '42939',
169
- DATATYPE_MISMATCH = '42804',
170
- INDETERMINATE_DATATYPE = '42P18',
171
- COLLATION_MISMATCH = '42P21',
172
- INDETERMINATE_COLLATION = '42P22',
173
- WRONG_OBJECT_TYPE = '42809',
174
- GENERATED_ALWAYS = '428C9',
175
- UNDEFINED_COLUMN = '42703',
176
- UNDEFINED_CURSOR = '34000',
177
- UNDEFINED_DATABASE = '3D000',
178
- UNDEFINED_FUNCTION = '42883',
179
- UNDEFINED_PSTATEMENT = '26000',
180
- UNDEFINED_SCHEMA = '3F000',
181
- UNDEFINED_TABLE = '42P01',
182
- UNDEFINED_PARAMETER = '42P02',
183
- UNDEFINED_OBJECT = '42704',
184
- DUPLICATE_COLUMN = '42701',
185
- DUPLICATE_CURSOR = '42P03',
186
- DUPLICATE_DATABASE = '42P04',
187
- DUPLICATE_FUNCTION = '42723',
188
- DUPLICATE_PSTATEMENT = '42P05',
189
- DUPLICATE_SCHEMA = '42P06',
190
- DUPLICATE_TABLE = '42P07',
191
- DUPLICATE_ALIAS = '42712',
192
- DUPLICATE_OBJECT = '42710',
193
- AMBIGUOUS_COLUMN = '42702',
194
- AMBIGUOUS_FUNCTION = '42725',
195
- AMBIGUOUS_PARAMETER = '42P08',
196
- AMBIGUOUS_ALIAS = '42P09',
197
- INVALID_COLUMN_REFERENCE = '42P10',
198
- INVALID_COLUMN_DEFINITION = '42611',
199
- INVALID_CURSOR_DEFINITION = '42P11',
200
- INVALID_DATABASE_DEFINITION = '42P12',
201
- INVALID_FUNCTION_DEFINITION = '42P13',
202
- INVALID_PSTATEMENT_DEFINITION = '42P14',
203
- INVALID_SCHEMA_DEFINITION = '42P15',
204
- INVALID_TABLE_DEFINITION = '42P16',
205
- INVALID_OBJECT_DEFINITION = '42P17',
206
- WITH_CHECK_OPTION_VIOLATION = '44000',
207
- INSUFFICIENT_RESOURCES = '53000',
208
- DISK_FULL = '53100',
209
- OUT_OF_MEMORY = '53200',
210
- TOO_MANY_CONNECTIONS = '53300',
211
- CONFIGURATION_LIMIT_EXCEEDED = '53400',
212
- PROGRAM_LIMIT_EXCEEDED = '54000',
213
- STATEMENT_TOO_COMPLEX = '54001',
214
- TOO_MANY_COLUMNS = '54011',
215
- TOO_MANY_ARGUMENTS = '54023',
216
- OBJECT_NOT_IN_PREREQUISITE_STATE = '55000',
217
- OBJECT_IN_USE = '55006',
218
- CANT_CHANGE_RUNTIME_PARAM = '55P02',
219
- LOCK_NOT_AVAILABLE = '55P03',
220
- UNSAFE_NEW_ENUM_VALUE_USAGE = '55P04',
221
- OPERATOR_INTERVENTION = '57000',
222
- QUERY_CANCELED = '57014',
223
- ADMIN_SHUTDOWN = '57P01',
224
- CRASH_SHUTDOWN = '57P02',
225
- CANNOT_CONNECT_NOW = '57P03',
226
- DATABASE_DROPPED = '57P04',
227
- IDLE_SESSION_TIMEOUT = '57P05',
228
- SYSTEM_ERROR = '58000',
229
- IO_ERROR = '58030',
230
- UNDEFINED_FILE = '58P01',
231
- DUPLICATE_FILE = '58P02',
232
- SNAPSHOT_TOO_OLD = '72000',
233
- CONFIG_FILE_ERROR = 'F0000',
234
- LOCK_FILE_EXISTS = 'F0001',
235
- FDW_ERROR = 'HV000',
236
- FDW_COLUMN_NAME_NOT_FOUND = 'HV005',
237
- FDW_DYNAMIC_PARAMETER_VALUE_NEEDED = 'HV002',
238
- FDW_FUNCTION_SEQUENCE_ERROR = 'HV010',
239
- FDW_INCONSISTENT_DESCRIPTOR_INFORMATION = 'HV021',
240
- FDW_INVALID_ATTRIBUTE_VALUE = 'HV024',
241
- FDW_INVALID_COLUMN_NAME = 'HV007',
242
- FDW_INVALID_COLUMN_NUMBER = 'HV008',
243
- FDW_INVALID_DATA_TYPE = 'HV004',
244
- FDW_INVALID_DATA_TYPE_DESCRIPTORS = 'HV006',
245
- FDW_INVALID_DESCRIPTOR_FIELD_IDENTIFIER = 'HV091',
246
- FDW_INVALID_HANDLE = 'HV00B',
247
- FDW_INVALID_OPTION_INDEX = 'HV00C',
248
- FDW_INVALID_OPTION_NAME = 'HV00D',
249
- FDW_INVALID_STRING_LENGTH_OR_BUFFER_LENGTH = 'HV090',
250
- FDW_INVALID_STRING_FORMAT = 'HV00A',
251
- FDW_INVALID_USE_OF_NULL_POINTER = 'HV009',
252
- FDW_TOO_MANY_HANDLES = 'HV014',
253
- FDW_OUT_OF_MEMORY = 'HV001',
254
- FDW_NO_SCHEMAS = 'HV00P',
255
- FDW_OPTION_NAME_NOT_FOUND = 'HV00J',
256
- FDW_REPLY_HANDLE = 'HV00K',
257
- FDW_SCHEMA_NOT_FOUND = 'HV00Q',
258
- FDW_TABLE_NOT_FOUND = 'HV00R',
259
- FDW_UNABLE_TO_CREATE_EXECUTION = 'HV00L',
260
- FDW_UNABLE_TO_CREATE_REPLY = 'HV00M',
261
- FDW_UNABLE_TO_ESTABLISH_CONNECTION = 'HV00N',
262
- PLPGSQL_ERROR = 'P0000',
263
- RAISE_EXCEPTION = 'P0001',
264
- NO_DATA_FOUND = 'P0002',
265
- TOO_MANY_ROWS = 'P0003',
266
- ASSERT_FAILURE = 'P0004',
267
- INTERNAL_ERROR = 'XX000',
268
- DATA_CORRUPTED = 'XX001',
269
- INDEX_CORRUPTED = 'XX002',
270
- }