Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-13384

"window" seems like a reserved column name but it's not listed as one

    XMLWordPrintable

    Details

      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

            Activity

              People

              Assignee:
              cvicentiu Vicențiu Ciorbaru
              Reporter:
              teuneboon Teun Beijers
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: