[MDEV-9375] Syntax Error when using "NOT IN (SELECT" Created: 2016-01-06 Updated: 2016-01-11 Resolved: 2016-01-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Manipulation - Subquery |
| Affects Version/s: | 10.1.10 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Cimeos | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux Debian 8 64 bits mariaDB packages (rom mariaDB apt repository) |
||
| Description |
|
Using a query with "NOT IN (SELECT" triggers a syntax error despite the fact that the query is syntaxically correct. Removing the "NOT" in the query does not trigger an error anymore. We simplified the query to show the issue (mytable can be any table)
Exact error message is :
Executing the same query under mysql 5.5.46 works as expected. |
| Comments |
| Comment by Elena Stepanova [ 2016-01-11 ] | |||||||||||||
|
The provided query cannot trigger the quoted message. The message says that LIMIT 0, 25 was a part of the statement, and it's not there. Please paste the whole query that you are trying to run, the unabridged output from your client, like below, only with the error message that you are getting.
| |||||||||||||
| Comment by Cimeos [ 2016-01-11 ] | |||||||||||||
|
Hi Elena, | |||||||||||||
| Comment by Cimeos [ 2016-01-11 ] | |||||||||||||
|
Just FYI, upgrading phpMyAdmin to the latest version (4.5.3.1) also solved the issue when executing the query via the interface | |||||||||||||
| Comment by Elena Stepanova [ 2016-01-11 ] | |||||||||||||
|
Thanks for the info. | |||||||||||||
| Comment by Cimeos [ 2016-01-11 ] | |||||||||||||
|
sure, Here's the produced query shown in mariadb logs
So it's completely removing the subselect part. The exact phpMyAdmin version that is causing this bug is 4.5.0.2. It doesn't seem to happen with other versions (I tested even some 4.3 & 4.4). Last 4.5.3.1 is working ok too |