Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
10.2(EOL), 10.3(EOL)
-
None
-
official MariaDB docker container on Debian 8 (jessie)
Description
When I try to make a table with a column called "window" I get the following error:
mysql> CREATE TABLE door (id INT, window VARCHAR(10)); |
ERROR 1064 (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 VARCHAR(10))' at line 1 |
If I do the same with another column name it works though:
mysql> CREATE TABLE door (id INT, door VARCHAR(10)); |
Query OK, 0 rows affected (0.04 sec) |
If I look at the reserved keywords: https://mariadb.com/kb/en/mariadb/reserved-words/ "window" doesn't appear to be listed there.
I use the official mariadb docker image without any custom config changes. Tested in an empty database.
Attachments
Issue Links
- relates to
-
MDEV-12809 Bad column type created for TEXT(1431655798) CHARACTER SET utf8
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Description |
When I try to make a table with a column called "window" I get the following error:
{{mysql> CREATE TABLE door (id INT, window VARCHAR(10)); ERROR 1064 (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 VARCHAR(10))' at line 1}} If I do the same with another column name it works though: {{mysql> CREATE TABLE door (id INT, door VARCHAR(10)); Query OK, 0 rows affected (0.04 sec)}} If I look at the reserved keywords: https://mariadb.com/kb/en/mariadb/reserved-words/ "window" doesn't appear to be listed there. I use the official mariadb docker image without any custom config changes. Tested in an empty database. |
When I try to make a table with a column called "window" I get the following error:
mysql> CREATE TABLE door (id INT, window VARCHAR(10)); ERROR 1064 (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 VARCHAR(10))' at line 1 If I do the same with another column name it works though: mysql> CREATE TABLE door (id INT, door VARCHAR(10)); Query OK, 0 rows affected (0.04 sec) If I look at the reserved keywords: https://mariadb.com/kb/en/mariadb/reserved-words/ "window" doesn't appear to be listed there. I use the official mariadb docker image without any custom config changes. Tested in an empty database. |
Affects Version/s | 10.2 [ 14601 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Priority | Major [ 3 ] | Minor [ 4 ] |
Affects Version/s | 10.3 [ 22126 ] | |
Affects Version/s | 10.2.7 [ 22543 ] |
Fix Version/s | 10.2 [ 14601 ] | |
Assignee | Vicentiu Ciorbaru [ cvicentiu ] |
Description |
When I try to make a table with a column called "window" I get the following error:
mysql> CREATE TABLE door (id INT, window VARCHAR(10)); ERROR 1064 (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 VARCHAR(10))' at line 1 If I do the same with another column name it works though: mysql> CREATE TABLE door (id INT, door VARCHAR(10)); Query OK, 0 rows affected (0.04 sec) If I look at the reserved keywords: https://mariadb.com/kb/en/mariadb/reserved-words/ "window" doesn't appear to be listed there. I use the official mariadb docker image without any custom config changes. Tested in an empty database. |
When I try to make a table with a column called "window" I get the following error:
{code:sql} mysql> CREATE TABLE door (id INT, window VARCHAR(10)); ERROR 1064 (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 VARCHAR(10))' at line 1 {code} If I do the same with another column name it works though: {code:sql} mysql> CREATE TABLE door (id INT, door VARCHAR(10)); Query OK, 0 rows affected (0.04 sec) {code} If I look at the reserved keywords: https://mariadb.com/kb/en/mariadb/reserved-words/ "window" doesn't appear to be listed there. I use the official mariadb docker image without any custom config changes. Tested in an empty database. |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
issue.field.resolutiondate | 2017-11-29 07:45:09.0 | 2017-11-29 07:45:09.561 |
Component/s | Optimizer - Window functions [ 13502 ] | |
Fix Version/s | 10.2.12 [ 22810 ] | |
Fix Version/s | 10.2 [ 14601 ] | |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
Link |
This issue relates to |
Workflow | MariaDB v3 [ 81796 ] | MariaDB v4 [ 152529 ] |
thanks for the report! indeed, an error is shown, starting from 10.2.0