Doctrine 1
  1. Doctrine 1
  2. DC-669

listTableIndexes() return an empty array with doctrine-1.2.2

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.3
    • Component/s: None
    • Labels:
      None
    • Environment:
      On linux fedora with MySQL 5.1.45

      Description

      I've a table A with 3 indexes. I would like to retrieve this list of indexes by using listTableIndexes() but I just get an empty array.

      I found the problem into listTableIndexes():
      The $keyName and $nonUnique are set in lowercase in my case.
      But the result of $indexes = $this->conn->fetchAssoc($query); have field names in both lower/upper case, e.g.:
      'Non_unique' => string '1' (length=1)
      'Key_name' => string 'module' (length=6)

      But maybe that's a config problem from my part and the case of $keyName and $nonUnique should not be modified.

        Activity

        Show
        Christophe Beaujean added a comment - Ref to http://www.doctrine-project.org/jira/browse/DC-685

          People

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

            Dates

            • Created:
              Updated:
              Resolved: