File: ErrorCodes.hs

package info (click to toggle)
hdbc-postgresql 2.5.0.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 216 kB
  • sloc: haskell: 1,196; ansic: 62; makefile: 32
file content (820 lines) | stat: -rw-r--r-- 19,187 bytes parent folder | download | duplicates (8)
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
-- Generated from "/usr/include/postgresql/utils/errcodes.h" (PostgreSQL 8.3).
--
-- The following vim regexp substitutions map "errorcodes.h" to this file:
--
-- " remove all comments
-- :%s/\v\/\*\_.{-}\*\/
--
-- " remove empty lines
-- :%s/^\s*\n/
--
-- " #defines -> functions
-- :%s/\v#define ERRCODE_(\S*)\t*/\L\1 = /
--
-- " expand MAKE_SQLSTATE macro
-- :%s/\vMAKE_SQLSTATE\('(.)',\s*'(.)',\s*'(.)',\s*'(.)',\s*'(.)'\)/"\1\2\3\4\5"/
--
-- " aliases
-- :%s/\vERRCODE_(\S*)/\L\1/
--
-- " type signatures
-- :%s/\v^(\S*)/\r\1 :: String\r\1/
--
-- " to mixedCase
-- :%s/\v_(\l)/\u\1/g
--
-- " got ride of additional whitespace
-- :%s/\s+=\s+/ = /
--
-- " Documentation
-- :%s/\v(\a+) :: String\n\1 \= "(.*)"/-- |Is set to @\\"\2\\"@.\r\0
--
-- " Documentation for aliases
-- :%s/\v(\a+) :: String\n\1 \= (\a+)/-- |Same as '\2'.\r\0
--

module Database.HDBC.PostgreSQL.ErrorCodes where

-- |Is set to @\"00000\"@.
successfulCompletion :: String
successfulCompletion = "00000"

-- |Is set to @\"01000\"@.
warning :: String
warning = "01000"

-- |Is set to @\"0100C\"@.
warningDynamicResultSetsReturned :: String
warningDynamicResultSetsReturned = "0100C"

-- |Is set to @\"01008\"@.
warningImplicitZeroBitPadding :: String
warningImplicitZeroBitPadding = "01008"

-- |Is set to @\"01003\"@.
warningNullValueEliminatedInSetFunction :: String
warningNullValueEliminatedInSetFunction = "01003"

-- |Is set to @\"01007\"@.
warningPrivilegeNotGranted :: String
warningPrivilegeNotGranted = "01007"

-- |Is set to @\"01006\"@.
warningPrivilegeNotRevoked :: String
warningPrivilegeNotRevoked = "01006"

-- |Is set to @\"01004\"@.
warningStringDataRightTruncation :: String
warningStringDataRightTruncation = "01004"

-- |Is set to @\"01P01\"@.
warningDeprecatedFeature :: String
warningDeprecatedFeature = "01P01"

-- |Is set to @\"02000\"@.
noData :: String
noData = "02000"

-- |Is set to @\"02001\"@.
noAdditionalDynamicResultSetsReturned :: String
noAdditionalDynamicResultSetsReturned = "02001"

-- |Is set to @\"03000\"@.
sqlStatementNotYetComplete :: String
sqlStatementNotYetComplete = "03000"

-- |Is set to @\"08000\"@.
connectionException :: String
connectionException = "08000"

-- |Is set to @\"08003\"@.
connectionDoesNotExist :: String
connectionDoesNotExist = "08003"

-- |Is set to @\"08006\"@.
connectionFailure :: String
connectionFailure = "08006"

-- |Is set to @\"08001\"@.
sqlclientUnableToEstablishSqlconnection :: String
sqlclientUnableToEstablishSqlconnection = "08001"

-- |Is set to @\"08004\"@.
sqlserverRejectedEstablishmentOfSqlconnection :: String
sqlserverRejectedEstablishmentOfSqlconnection = "08004"

-- |Is set to @\"08007\"@.
transactionResolutionUnknown :: String
transactionResolutionUnknown = "08007"

-- |Is set to @\"08P01\"@.
protocolViolation :: String
protocolViolation = "08P01"

-- |Is set to @\"09000\"@.
triggeredActionException :: String
triggeredActionException = "09000"

-- |Is set to @\"0A000\"@.
featureNotSupported :: String
featureNotSupported = "0A000"

-- |Is set to @\"0B000\"@.
invalidTransactionInitiation :: String
invalidTransactionInitiation = "0B000"

-- |Is set to @\"0F000\"@.
locatorException :: String
locatorException = "0F000"

-- |Is set to @\"0F001\"@.
lEInvalidSpecification :: String
lEInvalidSpecification = "0F001"

-- |Is set to @\"0L000\"@.
invalidGrantor :: String
invalidGrantor = "0L000"

-- |Is set to @\"0LP01\"@.
invalidGrantOperation :: String
invalidGrantOperation = "0LP01"

-- |Is set to @\"0P000\"@.
invalidRoleSpecification :: String
invalidRoleSpecification = "0P000"

-- |Is set to @\"21000\"@.
cardinalityViolation :: String
cardinalityViolation = "21000"

-- |Is set to @\"22000\"@.
dataException :: String
dataException = "22000"

-- |Is set to @\"2202E\"@.
arrayElementError :: String
arrayElementError = "2202E"

-- |Same as 'arrayElementError'.
arraySubscriptError :: String
arraySubscriptError = arrayElementError

-- |Is set to @\"22021\"@.
characterNotInRepertoire :: String
characterNotInRepertoire = "22021"

-- |Is set to @\"22008\"@.
datetimeFieldOverflow :: String
datetimeFieldOverflow = "22008"

-- |Same as 'datetimeFieldOverflow'.
datetimeValueOutOfRange :: String
datetimeValueOutOfRange = datetimeFieldOverflow

-- |Is set to @\"22012\"@.
divisionByZero :: String
divisionByZero = "22012"

-- |Is set to @\"22005\"@.
errorInAssignment :: String
errorInAssignment = "22005"

-- |Is set to @\"2200B\"@.
escapeCharacterConflict :: String
escapeCharacterConflict = "2200B"

-- |Is set to @\"22022\"@.
indicatorOverflow :: String
indicatorOverflow = "22022"

-- |Is set to @\"22015\"@.
intervalFieldOverflow :: String
intervalFieldOverflow = "22015"

-- |Is set to @\"2201E\"@.
invalidArgumentForLog :: String
invalidArgumentForLog = "2201E"

-- |Is set to @\"2201F\"@.
invalidArgumentForPowerFunction :: String
invalidArgumentForPowerFunction = "2201F"

-- |Is set to @\"2201G\"@.
invalidArgumentForWidthBucketFunction :: String
invalidArgumentForWidthBucketFunction = "2201G"

-- |Is set to @\"22018\"@.
invalidCharacterValueForCast :: String
invalidCharacterValueForCast = "22018"

-- |Is set to @\"22007\"@.
invalidDatetimeFormat :: String
invalidDatetimeFormat = "22007"

-- |Is set to @\"22019\"@.
invalidEscapeCharacter :: String
invalidEscapeCharacter = "22019"

-- |Is set to @\"2200D\"@.
invalidEscapeOctet :: String
invalidEscapeOctet = "2200D"

-- |Is set to @\"22025\"@.
invalidEscapeSequence :: String
invalidEscapeSequence = "22025"

-- |Is set to @\"22P06\"@.
nonstandardUseOfEscapeCharacter :: String
nonstandardUseOfEscapeCharacter = "22P06"

-- |Is set to @\"22010\"@.
invalidIndicatorParameterValue :: String
invalidIndicatorParameterValue = "22010"

-- |Is set to @\"22020\"@.
invalidLimitValue :: String
invalidLimitValue = "22020"

-- |Is set to @\"22023\"@.
invalidParameterValue :: String
invalidParameterValue = "22023"

-- |Is set to @\"2201B\"@.
invalidRegularExpression :: String
invalidRegularExpression = "2201B"

-- |Is set to @\"22009\"@.
invalidTimeZoneDisplacementValue :: String
invalidTimeZoneDisplacementValue = "22009"

-- |Is set to @\"2200C\"@.
invalidUseOfEscapeCharacter :: String
invalidUseOfEscapeCharacter = "2200C"

-- |Is set to @\"2200G\"@.
mostSpecificTypeMismatch :: String
mostSpecificTypeMismatch = "2200G"

-- |Is set to @\"22004\"@.
nullValueNotAllowed :: String
nullValueNotAllowed = "22004"

-- |Is set to @\"22002\"@.
nullValueNoIndicatorParameter :: String
nullValueNoIndicatorParameter = "22002"

-- |Is set to @\"22003\"@.
numericValueOutOfRange :: String
numericValueOutOfRange = "22003"

-- |Is set to @\"22026\"@.
stringDataLengthMismatch :: String
stringDataLengthMismatch = "22026"

-- |Is set to @\"22001\"@.
stringDataRightTruncation :: String
stringDataRightTruncation = "22001"

-- |Is set to @\"22011\"@.
substringError :: String
substringError = "22011"

-- |Is set to @\"22027\"@.
trimError :: String
trimError = "22027"

-- |Is set to @\"22024\"@.
unterminatedCString :: String
unterminatedCString = "22024"

-- |Is set to @\"2200F\"@.
zeroLengthCharacterString :: String
zeroLengthCharacterString = "2200F"

-- |Is set to @\"22P01\"@.
floatingPointException :: String
floatingPointException = "22P01"

-- |Is set to @\"22P02\"@.
invalidTextRepresentation :: String
invalidTextRepresentation = "22P02"

-- |Is set to @\"22P03\"@.
invalidBinaryRepresentation :: String
invalidBinaryRepresentation = "22P03"

-- |Is set to @\"22P04\"@.
badCopyFileFormat :: String
badCopyFileFormat = "22P04"

-- |Is set to @\"22P05\"@.
untranslatableCharacter :: String
untranslatableCharacter = "22P05"

-- |Is set to @\"2200L\"@.
notAnXmlDocument :: String
notAnXmlDocument = "2200L"

-- |Is set to @\"2200M\"@.
invalidXmlDocument :: String
invalidXmlDocument = "2200M"

-- |Is set to @\"2200N\"@.
invalidXmlContent :: String
invalidXmlContent = "2200N"

-- |Is set to @\"2200S\"@.
invalidXmlComment :: String
invalidXmlComment = "2200S"

-- |Is set to @\"2200T\"@.
invalidXmlProcessingInstruction :: String
invalidXmlProcessingInstruction = "2200T"

-- |Is set to @\"23000\"@.
integrityConstraintViolation :: String
integrityConstraintViolation = "23000"

-- |Is set to @\"23001\"@.
restrictViolation :: String
restrictViolation = "23001"

-- |Is set to @\"23502\"@.
notNullViolation :: String
notNullViolation = "23502"

-- |Is set to @\"23503\"@.
foreignKeyViolation :: String
foreignKeyViolation = "23503"

-- |Is set to @\"23505\"@.
uniqueViolation :: String
uniqueViolation = "23505"

-- |Is set to @\"23514\"@.
checkViolation :: String
checkViolation = "23514"

-- |Is set to @\"24000\"@.
invalidCursorState :: String
invalidCursorState = "24000"

-- |Is set to @\"25000\"@.
invalidTransactionState :: String
invalidTransactionState = "25000"

-- |Is set to @\"25001\"@.
activeSqlTransaction :: String
activeSqlTransaction = "25001"

-- |Is set to @\"25002\"@.
branchTransactionAlreadyActive :: String
branchTransactionAlreadyActive = "25002"

-- |Is set to @\"25008\"@.
heldCursorRequiresSameIsolationLevel :: String
heldCursorRequiresSameIsolationLevel = "25008"

-- |Is set to @\"25003\"@.
inappropriateAccessModeForBranchTransaction :: String
inappropriateAccessModeForBranchTransaction = "25003"

-- |Is set to @\"25004\"@.
inappropriateIsolationLevelForBranchTransaction :: String
inappropriateIsolationLevelForBranchTransaction = "25004"

-- |Is set to @\"25005\"@.
noActiveSqlTransactionForBranchTransaction :: String
noActiveSqlTransactionForBranchTransaction = "25005"

-- |Is set to @\"25006\"@.
readOnlySqlTransaction :: String
readOnlySqlTransaction = "25006"

-- |Is set to @\"25007\"@.
schemaAndDataStatementMixingNotSupported :: String
schemaAndDataStatementMixingNotSupported = "25007"

-- |Is set to @\"25P01\"@.
noActiveSqlTransaction :: String
noActiveSqlTransaction = "25P01"

-- |Is set to @\"25P02\"@.
inFailedSqlTransaction :: String
inFailedSqlTransaction = "25P02"

-- |Is set to @\"26000\"@.
invalidSqlStatementName :: String
invalidSqlStatementName = "26000"

-- |Is set to @\"27000\"@.
triggeredDataChangeViolation :: String
triggeredDataChangeViolation = "27000"

-- |Is set to @\"28000\"@.
invalidAuthorizationSpecification :: String
invalidAuthorizationSpecification = "28000"

-- |Is set to @\"2B000\"@.
dependentPrivilegeDescriptorsStillExist :: String
dependentPrivilegeDescriptorsStillExist = "2B000"

-- |Is set to @\"2BP01\"@.
dependentObjectsStillExist :: String
dependentObjectsStillExist = "2BP01"

-- |Is set to @\"2D000\"@.
invalidTransactionTermination :: String
invalidTransactionTermination = "2D000"

-- |Is set to @\"2F000\"@.
sqlRoutineException :: String
sqlRoutineException = "2F000"

-- |Is set to @\"2F005\"@.
sREFunctionExecutedNoReturnStatement :: String
sREFunctionExecutedNoReturnStatement = "2F005"

-- |Is set to @\"2F002\"@.
sREModifyingSqlDataNotPermitted :: String
sREModifyingSqlDataNotPermitted = "2F002"

-- |Is set to @\"2F003\"@.
sREProhibitedSqlStatementAttempted :: String
sREProhibitedSqlStatementAttempted = "2F003"

-- |Is set to @\"2F004\"@.
sREReadingSqlDataNotPermitted :: String
sREReadingSqlDataNotPermitted = "2F004"

-- |Is set to @\"34000\"@.
invalidCursorName :: String
invalidCursorName = "34000"

-- |Is set to @\"38000\"@.
externalRoutineException :: String
externalRoutineException = "38000"

-- |Is set to @\"38001\"@.
eREContainingSqlNotPermitted :: String
eREContainingSqlNotPermitted = "38001"

-- |Is set to @\"38002\"@.
eREModifyingSqlDataNotPermitted :: String
eREModifyingSqlDataNotPermitted = "38002"

-- |Is set to @\"38003\"@.
eREProhibitedSqlStatementAttempted :: String
eREProhibitedSqlStatementAttempted = "38003"

-- |Is set to @\"38004\"@.
eREReadingSqlDataNotPermitted :: String
eREReadingSqlDataNotPermitted = "38004"

-- |Is set to @\"39000\"@.
externalRoutineInvocationException :: String
externalRoutineInvocationException = "39000"

-- |Is set to @\"39001\"@.
eRIEInvalidSqlstateReturned :: String
eRIEInvalidSqlstateReturned = "39001"

-- |Is set to @\"39004\"@.
eRIENullValueNotAllowed :: String
eRIENullValueNotAllowed = "39004"

-- |Is set to @\"39P01\"@.
eRIETriggerProtocolViolated :: String
eRIETriggerProtocolViolated = "39P01"

-- |Is set to @\"39P02\"@.
eRIESrfProtocolViolated :: String
eRIESrfProtocolViolated = "39P02"

-- |Is set to @\"3B000\"@.
savepointException :: String
savepointException = "3B000"

-- |Is set to @\"3B001\"@.
sEInvalidSpecification :: String
sEInvalidSpecification = "3B001"

-- |Is set to @\"3D000\"@.
invalidCatalogName :: String
invalidCatalogName = "3D000"

-- |Is set to @\"3F000\"@.
invalidSchemaName :: String
invalidSchemaName = "3F000"

-- |Is set to @\"40000\"@.
transactionRollback :: String
transactionRollback = "40000"

-- |Is set to @\"40002\"@.
tRIntegrityConstraintViolation :: String
tRIntegrityConstraintViolation = "40002"

-- |Is set to @\"40001\"@.
tRSerializationFailure :: String
tRSerializationFailure = "40001"

-- |Is set to @\"40003\"@.
tRStatementCompletionUnknown :: String
tRStatementCompletionUnknown = "40003"

-- |Is set to @\"40P01\"@.
tRDeadlockDetected :: String
tRDeadlockDetected = "40P01"

-- |Is set to @\"42000\"@.
syntaxErrorOrAccessRuleViolation :: String
syntaxErrorOrAccessRuleViolation = "42000"

-- |Is set to @\"42601\"@.
syntaxError :: String
syntaxError = "42601"

-- |Is set to @\"42501\"@.
insufficientPrivilege :: String
insufficientPrivilege = "42501"

-- |Is set to @\"42846\"@.
cannotCoerce :: String
cannotCoerce = "42846"

-- |Is set to @\"42803\"@.
groupingError :: String
groupingError = "42803"

-- |Is set to @\"42830\"@.
invalidForeignKey :: String
invalidForeignKey = "42830"

-- |Is set to @\"42602\"@.
invalidName :: String
invalidName = "42602"

-- |Is set to @\"42622\"@.
nameTooLong :: String
nameTooLong = "42622"

-- |Is set to @\"42939\"@.
reservedName :: String
reservedName = "42939"

-- |Is set to @\"42804\"@.
datatypeMismatch :: String
datatypeMismatch = "42804"

-- |Is set to @\"42P18\"@.
indeterminateDatatype :: String
indeterminateDatatype = "42P18"

-- |Is set to @\"42809\"@.
wrongObjectType :: String
wrongObjectType = "42809"

-- |Is set to @\"42703\"@.
undefinedColumn :: String
undefinedColumn = "42703"

-- |Same as 'invalidCursorName'.
undefinedCursor :: String
undefinedCursor = invalidCursorName

-- |Same as 'invalidCatalogName'.
undefinedDatabase :: String
undefinedDatabase = invalidCatalogName

-- |Is set to @\"42883\"@.
undefinedFunction :: String
undefinedFunction = "42883"

-- |Same as 'invalidSqlStatementName'.
undefinedPstatement :: String
undefinedPstatement = invalidSqlStatementName

-- |Same as 'invalidSchemaName'.
undefinedSchema :: String
undefinedSchema = invalidSchemaName

-- |Is set to @\"42P01\"@.
undefinedTable :: String
undefinedTable = "42P01"

-- |Is set to @\"42P02\"@.
undefinedParameter :: String
undefinedParameter = "42P02"

-- |Is set to @\"42704\"@.
undefinedObject :: String
undefinedObject = "42704"

-- |Is set to @\"42701\"@.
duplicateColumn :: String
duplicateColumn = "42701"

-- |Is set to @\"42P03\"@.
duplicateCursor :: String
duplicateCursor = "42P03"

-- |Is set to @\"42P04\"@.
duplicateDatabase :: String
duplicateDatabase = "42P04"

-- |Is set to @\"42723\"@.
duplicateFunction :: String
duplicateFunction = "42723"

-- |Is set to @\"42P05\"@.
duplicatePstatement :: String
duplicatePstatement = "42P05"

-- |Is set to @\"42P06\"@.
duplicateSchema :: String
duplicateSchema = "42P06"

-- |Is set to @\"42P07\"@.
duplicateTable :: String
duplicateTable = "42P07"

-- |Is set to @\"42712\"@.
duplicateAlias :: String
duplicateAlias = "42712"

-- |Is set to @\"42710\"@.
duplicateObject :: String
duplicateObject = "42710"

-- |Is set to @\"42702\"@.
ambiguousColumn :: String
ambiguousColumn = "42702"

-- |Is set to @\"42725\"@.
ambiguousFunction :: String
ambiguousFunction = "42725"

-- |Is set to @\"42P08\"@.
ambiguousParameter :: String
ambiguousParameter = "42P08"

-- |Is set to @\"42P09\"@.
ambiguousAlias :: String
ambiguousAlias = "42P09"

-- |Is set to @\"42P10\"@.
invalidColumnReference :: String
invalidColumnReference = "42P10"

-- |Is set to @\"42611\"@.
invalidColumnDefinition :: String
invalidColumnDefinition = "42611"

-- |Is set to @\"42P11\"@.
invalidCursorDefinition :: String
invalidCursorDefinition = "42P11"

-- |Is set to @\"42P12\"@.
invalidDatabaseDefinition :: String
invalidDatabaseDefinition = "42P12"

-- |Is set to @\"42P13\"@.
invalidFunctionDefinition :: String
invalidFunctionDefinition = "42P13"

-- |Is set to @\"42P14\"@.
invalidPstatementDefinition :: String
invalidPstatementDefinition = "42P14"

-- |Is set to @\"42P15\"@.
invalidSchemaDefinition :: String
invalidSchemaDefinition = "42P15"

-- |Is set to @\"42P16\"@.
invalidTableDefinition :: String
invalidTableDefinition = "42P16"

-- |Is set to @\"42P17\"@.
invalidObjectDefinition :: String
invalidObjectDefinition = "42P17"

-- |Is set to @\"44000\"@.
withCheckOptionViolation :: String
withCheckOptionViolation = "44000"

-- |Is set to @\"53000\"@.
insufficientResources :: String
insufficientResources = "53000"

-- |Is set to @\"53100\"@.
diskFull :: String
diskFull = "53100"

-- |Is set to @\"53200\"@.
outOfMemory :: String
outOfMemory = "53200"

-- |Is set to @\"53300\"@.
tooManyConnections :: String
tooManyConnections = "53300"

-- |Is set to @\"54000\"@.
programLimitExceeded :: String
programLimitExceeded = "54000"

-- |Is set to @\"54001\"@.
statementTooComplex :: String
statementTooComplex = "54001"

-- |Is set to @\"54011\"@.
tooManyColumns :: String
tooManyColumns = "54011"

-- |Is set to @\"54023\"@.
tooManyArguments :: String
tooManyArguments = "54023"

-- |Is set to @\"55000\"@.
objectNotInPrerequisiteState :: String
objectNotInPrerequisiteState = "55000"

-- |Is set to @\"55006\"@.
objectInUse :: String
objectInUse = "55006"

-- |Is set to @\"55P02\"@.
cantChangeRuntimeParam :: String
cantChangeRuntimeParam = "55P02"

-- |Is set to @\"55P03\"@.
lockNotAvailable :: String
lockNotAvailable = "55P03"

-- |Is set to @\"57000\"@.
operatorIntervention :: String
operatorIntervention = "57000"

-- |Is set to @\"57014\"@.
queryCanceled :: String
queryCanceled = "57014"

-- |Is set to @\"57P01\"@.
adminShutdown :: String
adminShutdown = "57P01"

-- |Is set to @\"57P02\"@.
crashShutdown :: String
crashShutdown = "57P02"

-- |Is set to @\"57P03\"@.
cannotConnectNow :: String
cannotConnectNow = "57P03"

-- |Is set to @\"58030\"@.
ioError :: String
ioError = "58030"

-- |Is set to @\"58P01\"@.
undefinedFile :: String
undefinedFile = "58P01"

-- |Is set to @\"58P02\"@.
duplicateFile :: String
duplicateFile = "58P02"

-- |Is set to @\"F0000\"@.
configFileError :: String
configFileError = "F0000"

-- |Is set to @\"F0001\"@.
lockFileExists :: String
lockFileExists = "F0001"

-- |Is set to @\"P0000\"@.
plpgsqlError :: String
plpgsqlError = "P0000"

-- |Is set to @\"P0001\"@.
raiseException :: String
raiseException = "P0001"

-- |Is set to @\"P0002\"@.
noDataFound :: String
noDataFound = "P0002"

-- |Is set to @\"P0003\"@.
tooManyRows :: String
tooManyRows = "P0003"

-- |Is set to @\"XX000\"@.
internalError :: String
internalError = "XX000"

-- |Is set to @\"XX001\"@.
dataCorrupted :: String
dataCorrupted = "XX001"

-- |Is set to @\"XX002\"@.
indexCorrupted :: String
indexCorrupted = "XX002"