[MDEV-790] LP:519691 - No warning/error for unsupported index types Created: 2010-02-10 Updated: 2018-11-22 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major |
| Reporter: | Federico (Inactive) | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | Launchpad | ||
| Attachments: |
|
| Description |
|
If I create a new index and specify a type which is not supported by the storage engine:
For example, I tried to create a hash index for XtraDB:
|
| Comments |
| Comment by Kristian Nielsen [ 2010-02-11 ] |
|
Re: No warning/error for unsupported index types http://dev.mysql.com/doc/refman/5.1/en/create-index.html On the other hand, if we receive a patch to generate a warning in this case, we might consider including it in MariaDB, as it seems a reasonable enough thing to do. |
| Comment by Rasmus Johansson (Inactive) [ 2010-02-11 ] |
|
Launchpad bug id: 519691 |
| Comment by Sergei Golubchik [ 2015-03-06 ] |
|
There is IGNORE_BAD_TABLE_OPTIONS sql mode, which logically could apply here too. But by default we do not "ignore bad table options" and this sql mode enables a relaxed behavior. Suggestion: change the default to be strict and let IGNORE_BAD_TABLE_OPTIONS control it. |
| Comment by Ian Gilfillan [ 2018-03-16 ] |
|
Agree with serg's suggestion. |