Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.0(EOL), 10.1(EOL), 10.2(EOL)
-
None
-
10.2.1-2, 10.2.1-3
Description
This script:
DROP TABLE IF EXISTS t1; |
CREATE TABLE t1 (a INT); |
INSERT INTO t1 VALUES (1),(2),(3); |
SELECT * FROM (SELECT * FROM t1 LIMIT 1 LIMIT 2) t1; |
returns
+------+
|
| a |
|
+------+
|
| 1 |
|
| 2 |
|
+------+
|
Notice, there are two LIMIT clauses, and the first LIMIT clause is obviously ignored.
It should return a syntax error.
Attachments
Issue Links
- blocks
-
MDEV-8909 union parser cleanup
- Closed