Skip to content

Commit

Permalink
Add missing error codes to pkg/errno from pkg/parser/mysql.
Browse files Browse the repository at this point in the history
  • Loading branch information
wddevries committed Jan 8, 2025
1 parent 67249cb commit 76267c3
Show file tree
Hide file tree
Showing 2 changed files with 122 additions and 0 deletions.
61 changes: 61 additions & 0 deletions pkg/errno/errcode.go
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,23 @@ const (
ErrErrorDuringCheckpoint = 1183
ErrNewAbortingConnection = 1184
ErrDumpNotImplemented = 1185
ErrFlushMasterBinlogClosed = 1186
ErrIndexRebuild = 1187
ErrMaster = 1188
ErrMasterNetRead = 1189
ErrMasterNetWrite = 1190
ErrFtMatchingKeyNotFound = 1191
ErrLockOrActiveTransaction = 1192
ErrUnknownSystemVariable = 1193
ErrCrashedOnUsage = 1194
ErrCrashedOnRepair = 1195
ErrWarningNotCompleteRollback = 1196
ErrTransCacheFull = 1197
ErrSlaveMustStop = 1198
ErrSlaveNotRunning = 1199
ErrBadSlave = 1200
ErrMasterInfo = 1201
ErrSlaveThread = 1202
ErrTooManyUserConnections = 1203
ErrSetConstantsOnly = 1204
ErrLockWaitTimeout = 1205
Expand All @@ -227,6 +236,8 @@ const (
ErrCannotAddForeign = 1215
ErrNoReferencedRow = 1216
ErrRowIsReferenced = 1217
ErrConnectToMaster = 1218
ErrQueryOnMaster = 1219
ErrErrorWhenExecutingCommand = 1220
ErrWrongUsage = 1221
ErrWrongNumberOfColumnsInSelect = 1222
Expand All @@ -243,6 +254,8 @@ const (
ErrVarCantBeRead = 1233
ErrCantUseOptionHere = 1234
ErrNotSupportedYet = 1235
ErrMasterFatalErrorReadingBinlog = 1236
ErrSlaveIgnoredTable = 1237
ErrIncorrectGlobalLocalVar = 1238
ErrWrongFkDef = 1239
ErrKeyRefDoNotMatchTableRef = 1240
Expand All @@ -259,6 +272,8 @@ const (
ErrNotSupportedAuthMode = 1251
ErrSpatialCantHaveNull = 1252
ErrCollationCharsetMismatch = 1253
ErrSlaveWasRunning = 1254
ErrSlaveWasNotRunning = 1255
ErrTooBigForUncompress = 1256
ErrZlibZMem = 1257
ErrZlibZBuf = 1258
Expand All @@ -277,8 +292,11 @@ const (
ErrCantAggregateNcollations = 1271
ErrVariableIsNotStruct = 1272
ErrUnknownCollation = 1273
ErrSlaveIgnoredSslParams = 1274
ErrServerIsInSecureAuthMode = 1275
ErrWarnFieldResolved = 1276
ErrBadSlaveUntilCond = 1277
ErrMissingSkipSlave = 1278
ErrUntilCondIgnored = 1279
ErrWrongNameForIndex = 1280
ErrWrongNameForCatalog = 1281
Expand Down Expand Up @@ -535,6 +553,8 @@ const (
ErrSizeOverflow = 1532
ErrAlterFilegroupFailed = 1533
ErrBinlogRowLoggingFailed = 1534
ErrBinlogRowWrongTableDef = 1535
ErrBinlogRowRbrToSbr = 1536
ErrEventAlreadyExists = 1537
ErrEventStoreFailed = 1538
ErrEventDoesNotExist = 1539
Expand Down Expand Up @@ -588,8 +608,14 @@ const (
ErrBinlogPurgeEmFile = 1587
ErrEventCannotCreateInThePast = 1588
ErrEventCannotAlterInThePast = 1589
ErrSlaveIncident = 1590
ErrNoPartitionForGivenValueSilent = 1591
ErrBinlogUnsafeStatement = 1592
ErrSlaveFatal = 1593
ErrSlaveRelayLogReadFailure = 1594
ErrSlaveRelayLogWriteFailure = 1595
ErrSlaveCreateEventFailure = 1596
ErrSlaveMasterComFailure = 1597
ErrBinlogLoggingImpossible = 1598
ErrViewNoCreationCtx = 1599
ErrViewInvalidCreationCtx = 1600
Expand All @@ -600,18 +626,23 @@ const (
ErrEventInvalidCreationCtx = 1605
ErrTrgCantOpenTable = 1606
ErrCantCreateSroutine = 1607
ErrNeverUsed = 1608
ErrNoFormatDescriptionEventBeforeBinlogStatement = 1609
ErrSlaveCorruptEvent = 1610
ErrLoadDataInvalidColumn = 1611
ErrLogPurgeNoFile = 1612
ErrXaRbtimeout = 1613
ErrXaRbdeadlock = 1614
ErrNeedReprepare = 1615
ErrDelayedNotSupported = 1616
WarnNoMasterInfo = 1617
WarnOptionIgnored = 1618
WarnPluginDeleteBuiltin = 1619
WarnPluginBusy = 1620
ErrVariableIsReadonly = 1621
ErrWarnEngineTransactionRollback = 1622
ErrSlaveHeartbeatFailure = 1623
ErrSlaveHeartbeatValueOutOfRange = 1624
ErrNdbReplicationSchema = 1625
ErrConflictFnParse = 1626
ErrExceptionsWrite = 1627
Expand All @@ -637,6 +668,7 @@ const (
WarnCondItemTruncated = 1647
ErrCondItemTooLong = 1648
ErrUnknownLocale = 1649
ErrSlaveIgnoreServerIDs = 1650
ErrQueryCacheDisabled = 1651
ErrSameNamePartitionField = 1652
ErrPartitionColumnList = 1653
Expand All @@ -656,10 +688,15 @@ const (
ErrBinlogMultipleEnginesAndSelfLoggingEngine = 1667
ErrBinlogUnsafeLimit = 1668
ErrBinlogUnsafeInsertDelayed = 1669
ErrBinlogUnsafeSystemTable = 1670
ErrBinlogUnsafeAutoincColumns = 1671
ErrBinlogUnsafeUdf = 1672
ErrBinlogUnsafeSystemVariable = 1673
ErrBinlogUnsafeSystemFunction = 1674
ErrBinlogUnsafeNontransAfterTrans = 1675
ErrMessageAndStatement = 1676
ErrSlaveConversionFailed = 1677
ErrSlaveCantCreateConversion = 1678
ErrInsideTransactionPreventsSwitchBinlogFormat = 1679
ErrPathLength = 1680
ErrWarnDeprecatedSyntaxNoReplacement = 1681
Expand All @@ -684,6 +721,8 @@ const (
ErrGrantPluginUserExists = 1700
ErrTruncateIllegalForeignKey = 1701
ErrPluginIsPermanent = 1702
ErrSlaveHeartbeatValueOutOfRangeMin = 1703
ErrSlaveHeartbeatValueOutOfRangeMax = 1704
ErrStmtCacheFull = 1705
ErrMultiUpdateKeyConflict = 1706
ErrTableNeedsRebuild = 1707
Expand All @@ -693,13 +732,22 @@ const (
ErrErrorInUnknownTriggerBody = 1711
ErrIndexCorrupt = 1712
ErrUndoRecordTooBig = 1713
ErrBinlogUnsafeInsertIgnoreSelect = 1714
ErrBinlogUnsafeInsertSelectUpdate = 1715
ErrBinlogUnsafeReplaceSelect = 1716
ErrBinlogUnsafeCreateIgnoreSelect = 1717
ErrBinlogUnsafeCreateReplaceSelect = 1718
ErrBinlogUnsafeUpdateIgnore = 1719
ErrPluginNoUninstall = 1720
ErrPluginNoInstall = 1721
ErrBinlogUnsafeWriteAutoincSelect = 1722
ErrBinlogUnsafeCreateSelectAutoinc = 1723
ErrBinlogUnsafeInsertTwoKeys = 1724
ErrTableInFkCheck = 1725
ErrUnsupportedEngine = 1726
ErrBinlogUnsafeAutoincNotFirst = 1727
ErrCannotLoadFromTableV2 = 1728
ErrMasterDelayValueOutOfRange = 1729
ErrOnlyFdAndRbrEventsAllowedInBinlogStatement = 1730
ErrPartitionExchangeDifferentOption = 1731
ErrPartitionExchangePartTable = 1732
Expand All @@ -723,14 +771,17 @@ const (
ErrChangeRplInfoRepositoryFailure = 1750
ErrWarningNotCompleteRollbackWithCreatedTempTable = 1751
ErrWarningNotCompleteRollbackWithDroppedTempTable = 1752
ErrMtsFeatureIsNotSupported = 1753
ErrMtsUpdatedDBsGreaterMax = 1754
ErrMtsCantParallel = 1755
ErrMtsInconsistentData = 1756
ErrFulltextNotSupportedWithPartitioning = 1757
ErrDaInvalidConditionNumber = 1758
ErrInsecurePlainText = 1759
ErrInsecureChangeMaster = 1760
ErrForeignDuplicateKeyWithChildInfo = 1761
ErrForeignDuplicateKeyWithoutChildInfo = 1762
ErrSQLthreadWithSecureSlave = 1763
ErrTableHasNoFt = 1764
ErrVariableNotSettableInSfOrTrigger = 1765
ErrVariableNotSettableInTransaction = 1766
Expand All @@ -743,8 +794,11 @@ const (
ErrMalformedGtidSetEncoding = 1773
ErrMalformedGtidSpecification = 1774
ErrGnoExhausted = 1775
ErrBadSlaveAutoPosition = 1776
ErrAutoPositionRequiresGtidModeOn = 1777
ErrCantDoImplicitCommitInTrxWhenGtidNextIsSet = 1778
ErrGtidMode2Or3RequiresEnforceGtidConsistencyOn = 1779
ErrGtidModeRequiresBinlog = 1780
ErrCantSetGtidNextToGtidWhenGtidModeIsOff = 1781
ErrCantSetGtidNextToAnonymousWhenGtidModeIsOn = 1782
ErrCantSetGtidNextListToNonNullWhenGtidModeIsOff = 1783
Expand All @@ -753,19 +807,24 @@ const (
ErrGtidUnsafeCreateSelect = 1786
ErrGtidUnsafeCreateDropTemporaryTableInTransaction = 1787
ErrGtidModeCanOnlyChangeOneStepAtATime = 1788
ErrMasterHasPurgedRequiredGtids = 1789
ErrCantSetGtidNextWhenOwningGtid = 1790
ErrUnknownExplainFormat = 1791
ErrCantExecuteInReadOnlyTransaction = 1792
ErrTooLongTablePartitionComment = 1793
ErrSlaveConfiguration = 1794
ErrInnodbFtLimit = 1795
ErrInnodbNoFtTempTable = 1796
ErrInnodbFtWrongDocidColumn = 1797
ErrInnodbFtWrongDocidIndex = 1798
ErrInnodbOnlineLogTooBig = 1799
ErrUnknownAlterAlgorithm = 1800
ErrUnknownAlterLock = 1801
ErrMtsChangeMasterCantRunWithGaps = 1802
ErrMtsRecoveryFailure = 1803
ErrMtsResetWorkers = 1804
ErrColCountDoesntMatchCorruptedV2 = 1805
ErrSlaveSilentRetryTransaction = 1806
ErrDiscardFkChecksRunning = 1807
ErrTableSchemaMismatch = 1808
ErrTableInSystemTablespace = 1809
Expand Down Expand Up @@ -796,6 +855,7 @@ const (
ErrFkCannotDeleteParent = 1834
ErrMalformedPacket = 1835
ErrReadOnlyMode = 1836
ErrGtidNextTypeUndefinedGroup = 1837
ErrVariableNotSettableInSp = 1838
ErrCantSetGtidPurgedWhenGtidModeIsOff = 1839
ErrCantSetGtidPurgedWhenGtidExecutedIsNotEmpty = 1840
Expand All @@ -816,6 +876,7 @@ const (
ErrAlterOperationNotSupportedReasonHiddenFts = 1855
ErrAlterOperationNotSupportedReasonChangeFts = 1856
ErrAlterOperationNotSupportedReasonFts = 1857
ErrSQLSlaveSkipCounterNotSettableInGtidMode = 1858
ErrDupUnknownInIndex = 1859
ErrIdentCausesTooLongPath = 1860
ErrAlterOperationNotSupportedReasonNotNull = 1861
Expand Down
Loading

0 comments on commit 76267c3

Please sign in to comment.