[MDEV-8645] Mariadb match against a view (fulltext search) fails; succeeds in MySql Created: 2015-08-18 Updated: 2016-02-15 Resolved: 2016-02-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.3.12, 10.0.21, 5.5, 10.0, 10.1 |
| Fix Version/s: | 5.5.47, 10.0.23, 10.1.10 |
| Type: | Bug | Priority: | Major |
| Reporter: | Henrik Bechmann | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
ubuntu 14.04 lts (digital ocean) |
||
| Attachments: |
|
| Sprint: | 10.0.24 |
| Description |
|
I was invited by sergii on mariadb.com kb to submit the following bug (steps to reproduce are at bottom): DESCRIPTION: The fulltext search query below fails in mariadb, but succeeds in mysql (mariadb database imported from mysql database using phpmyadmin). If a base table is substituted, the query succeeds in both mariadb and mysql. So apparently mariadb cannot match against views. Is there a solution to this? It's messing up my migration. Using 10.0.21. Thanks. SELECT Title FROM Nodes_View WHERE (MATCH(Title,Caption,Description,Location,Body) AGAINST ('something')) TO REPRODUCE: 1. Create test database with attached sql script in both mariadb and mysql. 2. in mariadb run the folliowing query: SELECT `Title` FROM `Nodes_View` WHERE (MATCH(`Title`,`Caption`,`Description`,`Location`,`Body`) AGAINST('something')) note that this is run against a view 3. observe that this generates the following error #1210 - Incorrect arguments to AGAINST 4. run the same query in mysql 5. observe that there is no error 6. run the following query in the mariadb database: SELECT `Title` FROM `Articles` WHERE (MATCH(`Title`,`Caption`,`Description`,`Location`,`Body`) AGAINST('something')) note that this is run against a base table 7. observe that the query succeeds 8. run the same query in mysql 9. observe that the query succeeds Therefore, it appears that fulltext search fails in mariadb against a view |
| Comments |
| Comment by Elena Stepanova [ 2015-08-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks for the report and the test case. Reproducible both with InnoDB and MyISAM tables. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Henrik Bechmann [ 2015-08-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
you're very welcome, and thanks for your quick response! | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2016-02-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
I can't reproduce it any more, if you can (on modern version) feel free to reopen it. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2016-02-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2016-02-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
The problem disappeared in 5.5.47 after this merge
more exactly by the merge of MySQL 5.5
more exactly but this commit
particularly by this change
So, it does look like the bug was actually fixed, and not just masked. |