Error codes › 1231
MySQL & MariaDB error 1231 ER_WRONG_VALUE_FOR_VAR
Example from our test runs:
Variable 'sql_mode' can't be set to the value of 'ORACLE' (8.0.46) | MySQL | MariaDB | |
|---|---|---|
| Symbol | ER_WRONG_VALUE_FOR_VAR | ER_WRONG_VALUE_FOR_VAR |
| SQLSTATE | 42000 | 42000 |
| Type | Server error | Server error |
| Versions | every release since 5.0 active | every release since 5.5 active |
Where this error shows up in our guides
- Update rows reversing column values · MariaDB sql_mode SIMULTANEOUS_ASSIGNMENT makes SET f1 = f2, f2 = f1 swap MySQL 5.6 5.7 8.0 8.4 9
- Implementing MINUS in MySQL · MINUS keyword with sql_mode = ORACLE (MariaDB) MySQL 8.0 8.4 9
How the message changed between versions
| MariaDB from | Symbol | Message |
|---|---|---|
| 5.5.68 | ER_WRONG_VALUE_FOR_VAR | Variable '%-.64s' can't be set to the value of '%-.200s' |
| 10.2.44 | ER_WRONG_VALUE_FOR_VAR | Variable '%-.64s' can't be set to the value of '%-.200T' |
| 11.8.10 | ER_WRONG_VALUE_FOR_VAR | Variable '%-.64s' can't be set to the value of '%-.200sT' |