-
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdbCodeReponse.go
More file actions
232 lines (231 loc) · 13.2 KB
/
dbCodeReponse.go
File metadata and controls
232 lines (231 loc) · 13.2 KB
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
package response
const (
SuccessfulCompletion = "00000"
Warning = "01000"
DynamicResultSetsReturned = "0100C"
ImplicitZeroBitPadding = "01008"
NullValueEliminatedInSetFunction = "01003"
PrivilegeNotGranted = "01007"
PrivilegeNotRevoked = "01006"
DeprecatedFeature = "01P01"
NoData = "02000"
NoAdditionalDynamicResultSetsReturned = "02001"
SQLStatementNotYetComplete = "03000"
ConnectionException = "08000"
ConnectionDoesNotExist = "08003"
ConnectionFailure = "08006"
SQLClientUnableToEstablishSQLConnection = "08001"
SQLServerRejectedEstablishmentOfSQLConnection = "08004"
TransactionResolutionUnknown = "08007"
ProtocolViolation = "08P01"
TriggeredActionException = "09000"
FeatureNotSupported = "0A000"
InvalidTransactionInitiation = "0B000"
LocatorException = "0F000"
InvalidLocatorSpecification = "0F001"
InvalidGrantor = "0L000"
InvalidGrantOperation = "0LP01"
InvalidRoleSpecification = "0P000"
DiagnosticsException = "0Z000"
StackedDiagnosticsAccessedWithoutActiveHandler = "0Z002"
CaseNotFound = "20000"
CardinalityViolation = "21000"
DataException = "22000"
ArraySubscriptError = "2202E"
CharacterNotInRepertoire = "22021"
DatetimeFieldOverflow = "22008"
DivisionByZero = "22012"
ErrorInAssignment = "22005"
EscapeCharacterConflict = "2200B"
IndicatorOverflow = "22022"
IntervalFieldOverflow = "22015"
InvalidArgumentForLogarithm = "2201E"
InvalidArgumentForNtileFunction = "22014"
InvalidArgumentForNthValueFunction = "22016"
InvalidArgumentForPowerFunction = "2201F"
InvalidArgumentForWidthBucketFunction = "2201G"
InvalidCharacterValueForCast = "22018"
InvalidDatetimeFormat = "22007"
InvalidEscapeCharacter = "22019"
InvalidEscapeOctet = "2200D"
InvalidEscapeSequence = "22025"
NonstandardUseOfEscapeCharacter = "22P06"
InvalidIndicatorParameterValue = "22010"
InvalidParameterValue = "22023"
InvalidRegularExpression = "2201B"
InvalidRowCountInLimitClause = "2201W"
InvalidRowCountInResultOffsetClause = "2201X"
InvalidTimeZoneDisplacementValue = "22009"
InvalidUseOfEscapeCharacter = "2200C"
MostSpecificTypeMismatch = "2200G"
NullValueNoIndicatorParameter = "22002"
NumericValueOutOfRange = "22003"
SequenceGeneratorLimitExceeded = "2200H"
StringDataLengthMismatch = "22026"
StringDataRightTruncation = "22001"
SubstringError = "22011"
TrimError = "22027"
UnterminatedCString = "22024"
ZeroLengthCharacterString = "2200F"
FloatingPointException = "22P01"
InvalidTextRepresentation = "22P02"
InvalidBinaryRepresentation = "22P03"
BadCopyFileFormat = "22P04"
UntranslatableCharacter = "22P05"
NotAnXMLDocument = "2200L"
InvalidXMLDocument = "2200M"
InvalidXMLContent = "2200N"
InvalidXMLComment = "2200S"
InvalidXMLProcessingInstruction = "2200T"
IntegrityConstraintViolation = "23000"
RestrictViolation = "23001"
NotNullViolation = "23502"
ForeignKeyViolation = "23503"
UniqueViolation = "23505"
CheckViolation = "23514"
ExclusionViolation = "23P01"
InvalidCursorState = "24000"
InvalidTransactionState = "25000"
ActiveSQLTransaction = "25001"
BranchTransactionAlreadyActive = "25002"
HeldCursorRequiresSameIsolationLevel = "25008"
InappropriateAccessModeForBranchTransaction = "25003"
InappropriateIsolationLevelForBranchTransaction = "25004"
NoActiveSQLTransactionForBranchTransaction = "25005"
ReadOnlySQLTransaction = "25006"
SchemaAndDataStatementMixingNotSupported = "25007"
NoActiveSQLTransaction = "25P01"
InFailedSQLTransaction = "25P02"
InvalidSQLStatementName = "26000"
TriggeredDataChangeViolation = "27000"
InvalidAuthorizationSpecification = "28000"
InvalidPassword = "28P01"
DependentPrivilegeDescriptorsStillExist = "2B000"
DependentObjectsStillExist = "2BP01"
InvalidTransactionTermination = "2D000"
SQLRoutineException = "2F000"
FunctionExecutedNoReturnStatement = "2F005"
InvalidCursorName = "34000"
ExternalRoutineException = "38000"
ContainingSQLNotPermitted = "38001"
ModifyingSQLDataNotPermitted = "38002"
ProhibitedSQLStatementAttempted = "38003"
ReadingSQLDataNotPermitted = "38004"
ExternalRoutineInvocationException = "39000"
InvalidSQLStateReturned = "39001"
NullValueNotAllowed = "39004"
TriggerProtocolViolated = "39P01"
SRFProtocolViolated = "39P02"
SavepointException = "3B000"
InvalidSavepointSpecification = "3B001"
InvalidCatalogName = "3D000"
InvalidSchemaName = "3F000"
TransactionRollback = "40000"
TransactionIntegrityConstraintViolation = "40002"
SerializationFailure = "40001"
StatementCompletionUnknown = "40003"
DeadlockDetected = "40P01"
SyntaxErrorOrAccessRuleViolation = "42000"
SyntaxError = "42601"
InsufficientPrivilege = "42501"
CannotCoerce = "42846"
GroupingError = "42803"
WindowingError = "42P20"
InvalidRecursion = "42P19"
InvalidForeignKey = "42830"
InvalidName = "42602"
NameTooLong = "42622"
ReservedName = "42939"
DatatypeMismatch = "42804"
IndeterminateDatatype = "42P18"
CollationMismatch = "42P21"
IndeterminateCollation = "42P22"
WrongObjectType = "42809"
UndefinedColumn = "42703"
UndefinedFunction = "42883"
UndefinedTable = "42P01"
UndefinedParameter = "42P02"
UndefinedObject = "42704"
DuplicateColumn = "42701"
DuplicateCursor = "42P03"
DuplicateDatabase = "42P04"
DuplicateFunction = "42723"
DuplicatePreparedStatement = "42P05"
DuplicateSchema = "42P06"
DuplicateTable = "42P07"
DuplicateAlias = "42712"
DuplicateObject = "42710"
AmbiguousColumn = "42702"
AmbiguousFunction = "42725"
AmbiguousParameter = "42P08"
AmbiguousAlias = "42P09"
InvalidColumnReference = "42P10"
InvalidColumnDefinition = "42611"
InvalidCursorDefinition = "42P11"
InvalidDatabaseDefinition = "42P12"
InvalidFunctionDefinition = "42P13"
InvalidPreparedStatementDefinition = "42P14"
InvalidSchemaDefinition = "42P15"
InvalidTableDefinition = "42P16"
InvalidObjectDefinition = "42P17"
WithCheckOptionViolation = "44000"
InsufficientResources = "53000"
DiskFull = "53100"
OutOfMemory = "53200"
TooManyConnections = "53300"
ConfigurationLimitExceeded = "53400"
ProgramLimitExceeded = "54000"
StatementTooComplex = "54001"
TooManyColumns = "54011"
TooManyArguments = "54023"
ObjectNotInPrerequisiteState = "55000"
ObjectInUse = "55006"
CantChangeRuntimeParam = "55P02"
LockNotAvailable = "55P03"
OperatorIntervention = "57000"
QueryCanceled = "57014"
AdminShutdown = "57P01"
CrashShutdown = "57P02"
CannotConnectNow = "57P03"
DatabaseDropped = "57P04"
SystemError = "58000"
IOError = "58030"
UndefinedFile = "58P01"
DuplicateFile = "58P02"
ConfigFileError = "F0000"
LockFileExists = "F0001"
FDWError = "HV000"
FDWColumnNameNotFound = "HV005"
FDWDynamicParameterValueNeeded = "HV002"
FDWFunctionSequenceError = "HV010"
FDWInconsistentDescriptorInformation = "HV021"
FDWInvalidAttributeValue = "HV024"
FDWInvalidColumnName = "HV007"
FDWInvalidColumnNumber = "HV008"
FDWInvalidDataType = "HV004"
FDWInvalidDataTypeDescriptors = "HV006"
FDWInvalidDescriptorFieldIdentifier = "HV091"
FDWInvalidHandle = "HV00B"
FDWInvalidOptionIndex = "HV00C"
FDWInvalidOptionName = "HV00D"
FDWInvalidStringLengthOrBufferLength = "HV090"
FDWInvalidStringFormat = "HV00A"
FDWInvalidUseOfNullPointer = "HV009"
FDWTooManyHandles = "HV014"
FDWOutOfMemory = "HV001"
FDWNoSchemas = "HV00P"
FDWOptionNameNotFound = "HV00J"
FDWReplyHandle = "HV00K"
FDWSchemaNotFound = "HV00Q"
FDWTableNotFound = "HV00R"
FDWUnableToCreateExecution = "HV00L"
FDWUnableToCreateReply = "HV00M"
FDWUnableToEstablishConnection = "HV00N"
PLPGSQL_Error = "P0000"
RaiseException = "P0001"
NoDataFound = "P0002"
TooManyRows = "P0003"
InternalError = "XX000"
DataCorrupted = "XX001"
IndexCorrupted = "XX002"
)