Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-115

SchemaManager doesn't quote table names for MySQL

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Duplicate
    • Affects Version/s: 2.0.4
    • Fix Version/s: None
    • Component/s: Schema Managers
    • Labels:
      None
    • Environment:
      Linux Kernel 2.6.38
      MySQL 5.5.11
      PHP 5.3.6

      Description

      Using a reserved word as a table name only works for schema creation not dropping.

      Example Enity:
      /**

      • @Entity
      • @Table(name="`call`")
        */

      class Call {
      /**

      • @Column(name="id", type="integer", nullable=false)
      • @Id
      • @GeneratedValue(strategy="IDENTITY")
      • @var integer $id
        */
        private $id;
        }

      The table name is quoted. creation works, dropping doesn't even after changing the table name to a not reserved word.

        Activity

        Zoran Zaric created issue -
        Hide
        Benjamin Eberlei added a comment -

        This problem is a little more complicated, it will be fixed in DBAL-96 probably for 2.2

        Show
        Benjamin Eberlei added a comment - This problem is a little more complicated, it will be fixed in DBAL-96 probably for 2.2
        Benjamin Eberlei made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Duplicate [ 3 ]
        Benjamin Eberlei made changes -
        Workflow jira [ 12591 ] jira-feedback2 [ 17716 ]
        Benjamin Eberlei made changes -
        Workflow jira-feedback2 [ 17716 ] jira-feedback3 [ 20071 ]

        This list may be incomplete, as errors occurred whilst retrieving source from linked applications:

        • Request to http://www.doctrine-project.org/fisheye/ failed: Error in remote call to 'FishEye 0 (http://www.doctrine-project.org/fisheye/)' (http://www.doctrine-project.org/fisheye) [AbstractRestCommand{path='/rest-service-fe/search-v1/crossRepositoryQuery', params={query=DBAL-115, expand=changesets[0:20].revisions[0:29],reviews}, methodType=GET}] : Received status code 503 (Service Temporarily Unavailable)

          People

          • Assignee:
            Benjamin Eberlei
            Reporter:
            Zoran Zaric
          • Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: