Details
-
Bug
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
10.1(EOL), 10.2(EOL), 10.3(EOL), 10.4(EOL)
-
None
Description
This script (notice sql_no_cache is used as a column name rather than an option):
CREATE OR REPLACE TABLE t1 (sql_no_cache INT); |
SELECT * FROM (SELECT 1 UNION SELECT SQL_NO_CACHE FROM t1) AS t1; |
returns:
+------+
|
| 1 |
|
+------+
|
| 1 |
|
+------+
|
This script:
CREATE OR REPLACE TABLE t1 (sql_no_cache INT); |
SELECT * FROM (SELECT SQL_NO_CACHE FROM t1) AS t1; |
returns
ERROR 1234 (42000): Incorrect usage/placement of 'SQL_NO_CACHE'
|
Looks wrong. It should return the result.
Attachments
Issue Links
- relates to
-
MDEV-8909 union parser cleanup
- Closed