[MDEV-12847] InnoDB: Error in pars0opt.cc: table test/#sql-5870_3 has prefix_len != 0 Created: 2017-05-19 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Full-text Search, Storage Engine - InnoDB |
| Affects Version/s: | 10.0, 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Thirunarayanan Balathandayuthapani |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
Also reproducible with MySQL 5.6. |
| Comments |
| Comment by Marko Mäkelä [ 2018-05-28 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
This message was suppressed in MySQL 5.7.1. This change seems questionable to me, because the very purpose of the message seems to be to alert that the InnoDB internal SQL parser assumes that there be no column prefix indexes on the PRIMARY KEY. This should affect FULLTEXT INDEX in InnoDB only. The error message is emitted during the ALTER TABLE call, which is rebuilding the table.
I think that we should treat this as yet another potential bug with InnoDB FULLTEXT INDEX. | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2018-09-07 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
I think if an (ante-mortem) error message has a purpose, it would be to alert a user about something. But the message as it is now is meaningless, nobody who isn't intimately familiar with InnoDB internals can say what it tries to alert about. it should be at least re-written. | |||||||||||||||||||||||||||||||||||||||||||||
| Comment by Marko Mäkelä [ 2018-09-10 ] | |||||||||||||||||||||||||||||||||||||||||||||
|
Well, we could suppress the warning, but first I think that we should test whether FULLTEXT INDEX actually works when the PRIMARY KEY includes a column prefix. This should also involve some code review, so that we can understand any implications. |