-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sql_yacc_ora.yy: mering MDEV-13384 "window" seems like a reserved col…
…umn name but it's not listed as one Merging MDEV-13384 changes from sql_yacc.yy to sql_yacc_ora.yy
- Loading branch information
Showing
4 changed files
with
57 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# | ||
# MDEV-13384: "window" seems like a reserved column name but it's not listed as one | ||
# | ||
# Currently we allow window as an identifier, except for table aliases. | ||
# | ||
CREATE TABLE door (id INT, window VARCHAR(10)); | ||
SELECT id | ||
FROM door as window; | ||
ERROR 42000: 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 'window' at line 2 | ||
SELECT id, window | ||
FROM door; | ||
id window | ||
SELECT id, window | ||
FROM door as window; | ||
ERROR 42000: 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 'window' at line 2 | ||
DROP TABLE door; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--echo # | ||
--echo # MDEV-13384: "window" seems like a reserved column name but it's not listed as one | ||
--echo # | ||
--echo # Currently we allow window as an identifier, except for table aliases. | ||
--echo # | ||
|
||
CREATE TABLE door (id INT, window VARCHAR(10)); | ||
|
||
--error ER_PARSE_ERROR | ||
SELECT id | ||
FROM door as window; | ||
|
||
SELECT id, window | ||
FROM door; | ||
|
||
--error ER_PARSE_ERROR | ||
SELECT id, window | ||
FROM door as window; | ||
|
||
DROP TABLE door; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters