DDC-1755: Commands for updating / dropping schema don't work as excpected when there are quoted table names defined. #2205

Closed
opened 2026-01-22 13:44:36 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Apr 3, 2012).

Originally assigned to: @beberlei on GitHub.

Jira issue originally created by user itako:

fragment of schema definition in Symfony2
{quote}
/****

  • @ORM\Entity
  • @ORM\Table(name="character")
    */
    class Character
    {quote}

Symfony command "doctrine:schema:drop" doesn't drop the "character" table, and "doctrine:schema:update" raises an error
{quote}
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL serv
version for the right syntax to use near 'character
{quote}

Originally created by @doctrinebot on GitHub (Apr 3, 2012). Originally assigned to: @beberlei on GitHub. Jira issue originally created by user itako: fragment of schema definition in Symfony2 {quote} /**** - @ORM\Entity - @ORM\Table(name="`character`") */ class Character {quote} Symfony command "doctrine:schema:drop" doesn't drop the "character" table, and "doctrine:schema:update" raises an error {quote} SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL serv version for the right syntax to use near 'character {quote}
admin added the Bug label 2026-01-22 13:44:36 +01:00
admin closed this issue 2026-01-22 13:44:37 +01:00
Author
Owner

@doctrinebot commented on GitHub (Jul 8, 2012):

Comment created by @beberlei:

This was fixed in 2.2. It was not backported, because the changes were quite big.

@doctrinebot commented on GitHub (Jul 8, 2012): Comment created by @beberlei: This was fixed in 2.2. It was not backported, because the changes were quite big.
Author
Owner

@doctrinebot commented on GitHub (Jul 8, 2012):

Issue was closed with resolution "Duplicate"

@doctrinebot commented on GitHub (Jul 8, 2012): Issue was closed with resolution "Duplicate"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2205