[MDEV-12884] Bad error message upon ALTER TABLE with wrong ROW_FORMAT Created: 2017-05-23 Updated: 2021-04-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Marko Mäkelä |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
In fact, the engine supports the option, and the option name is wrong. What it doesn't support is the value.
At least the message for error 1478 is better here. |
| Comments |
| Comment by Marko Mäkelä [ 2021-04-26 ] | |||||||||||||
|
serg, as far as I remember, you do not like error or warning message codes to be added that are specific for a single storage engine. (Well, this one could be implemented in many storage engines if we wanted them to loudly ignore incorrect parameter values.) We would need an error message pattern that allows us to specify two strings, the parameter name and the value. Another error message pattern would be nice, to specify a parameter name and a numeric value (such as ENCRYPTION_KEY_ID, for MDEV-15116). | |||||||||||||
| Comment by Sergei Golubchik [ 2021-04-28 ] | |||||||||||||
|
I presume, it happens because of
I think it could be a bit more flexible, and let info.check_table_options() issue a more specific error message in certain cases, instead of just blindly assuming that the only possible error is the unknown option name. Like, for example
|