Doctrine 1
  1. Doctrine 1
  2. DC-1025

Doctrine is unable to handle table names with spaces

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Blocker Blocker
    • Resolution: Unresolved
    • Affects Version/s: 1.2.1, 1.2.2, 1.2.3
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      PHP Version 5.2.14
      Apache 2
      MySQL
      Windows Xp

      Description

      When trying to query a table which contains spaces I get the following exception

      I have attached an simple example to reproduce

      C:\Documents and Settings\daniel\Dokumenter\NetBeansProjects\test>php doctrineTest.php

      Fatal error: Uncaught exception 'Doctrine_Query_Exception' with message 'Unknown table alias with' in C:\Doctrine-1.2.3\Doctrine\Query\Abstract.php:856
      Stack trace:
      #0 C:\Doctrine-1.2.3\Doctrine\Query.php(1022): Doctrine_Query_Abstract->getComponentAlias('with')
      #1 C:\Doctrine-1.2.3\Doctrine\Query.php(1239): Doctrine_Query->_buildSqlFromPart()
      #2 C:\Doctrine-1.2.3\Doctrine\Query.php(1133): Doctrine_Query->buildSqlQuery(true)
      #3 C:\Doctrine-1.2.3\Doctrine\Query\Abstract.php(958): Doctrine_Query->getSqlQuery(Array)
      #4 C:\Doctrine-1.2.3\Doctrine\Query\Abstract.php(1026): Doctrine_Query_Abstract->_execute(Array)
      #5 C:\Documents and Settings\daniel\Dokumenter\NetBeansProjects\test\doctrineTest.php(18): Doctrine_Query_Abstract->execute()
      #6

      {main}

      thrown in C:\Doctrine-1.2.3\Doctrine\Query\Abstract.php on line 856

      1. doctrineTest.php
        0.5 kB
        Daniel Borg
      2. tbl.php
        0.8 kB
        Daniel Borg
      3. tbl_1.php
        0.2 kB
        Daniel Borg

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Jonathan H. Wage
            Reporter:
            Daniel Borg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: