| 1 | # mysqlerr |
| 2 | |
| 3 | MySQL Server Error Constants. |
| 4 | |
| 5 | Covers up to MySQL 8.0.19. Notice that some constants were renamed in later |
| 6 | versions of MySQL, because they became obsolete. (In case you wonder: the names |
| 7 | here match the symbols MySQL uses in source code.) Obsolete names haven't been |
| 8 | changed in this package to avoid breaking code, but you should no longer be |
| 9 | using them in applications. New and/or changed names (symbols) are given in |
| 10 | inline comments. |
| 11 | |
| 12 | ```go |
| 13 | const ( |
| 14 | ER_HASHCHK = 1000 // OBSOLETE_ER_HASHCHK |
| 15 | ER_NISAMCHK = 1001 // OBSOLETE_ER_NISAMCHK |
| 16 | // ... |
| 17 | ER_WRONG_OUTER_JOIN = 1120 // ER_WRONG_OUTER_JOIN_UNUSED |
| 18 | // ... |
| 19 | ER_DELAYED_CANT_CHANGE_LOCK = 1150 // OBSOLETE_ER_UNUSED1 |
| 20 | ER_TOO_MANY_DELAYED_THREADS = 1151 // OBSOLETE_ER_UNUSED2 |
| 21 | // ... |
| 22 | ) |
| 23 | ``` |