mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
MySQL - schema can be created with reserved keyword but will produce an error when using it #5004
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @lbayerl on GitHub (Feb 3, 2016).
Originally assigned to: @Ocramius on GitHub.
Having a column definition like
using schema:update will produce an SQL statement using 'interval' - including apostrophes.
This will successfully create the schema.
But when using this column after schema creation with DQL (e.g. persist and flush a new object) it will produce an SQL statement using interval without apostrophes.
This will throw a SQL error as interval is a reserved keyword with MySQL.
This looks inconsistent to me.