[MDEV-7890] Same query cannot be executed using CONNECT Engine Created: 2015-03-31 Updated: 2015-04-04 Resolved: 2015-04-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Partitioning, Storage Engine - Connect |
| Affects Version/s: | 10.0 |
| Fix Version/s: | 10.0.18 |
| Type: | Bug | Priority: | Major |
| Reporter: | tramchamploo | Assignee: | Olivier Bertrand |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | verified | ||
| Environment: |
Debian 7 |
||
| Description |
|
When I execute the query, it says ERROR 1296 (HY000): Got error 122 '(1064) You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'WHERE (`id` = 6621139)' at line 1 [SELECT `id` FROM `for' from CONNECT; MariaDB [medusa]> SELECT fmp.id, fmp.user_id, fmp.title, fmp.last_update_time, fmp.type, fmp.order_weight, fmp.beauty, fmp.score FROM forum_main_post fmp LEFT JOIN forum_post_maria fp ON fp.id = fmp.id WHERE fmp.type = 2 ORDER BY fmp.score DESC LIMIT 0, 1000; |
| Comments |
| Comment by Elena Stepanova [ 2015-03-31 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Works for me. | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by tramchamploo [ 2015-04-01 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Yes, sometimes it works fine. It depends on data. The data set is too big that I can't upload. How can I see error log from connect? I tried to just keep the row where error occur, that is `id` = 6621139. And it works good. Client log has been uploaded | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-04-01 ] | ||||||||||||||||||||||||||||||||||||||||||||||
Uploaded where? Could you please enable general log (a.k.a. query log) on the server and reproduce the problem again? To enable general log, run
and optionally, also set general_log_file variable to the path where you want the log to be created. | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by tramchamploo [ 2015-04-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
seem like the last one failed | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-04-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
Thanks! Now I can reproduce it. | ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Elena Stepanova [ 2015-04-02 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
It produces two valid queries from Connect, and one with the duplicate WHERE clause:
| ||||||||||||||||||||||||||||||||||||||||||||||
| Comment by tramchamploo [ 2015-04-03 ] | ||||||||||||||||||||||||||||||||||||||||||||||
|
When will it be fixed? |