Doctrine 1
  1. Doctrine 1
  2. DC-832

PostgreSQL - lastInsertId fails because sequence name on table with column alias on primary key does not work [+patch]

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.2.2
    • Fix Version/s: 1.2.3
    • Component/s: Query
    • Labels:
      None

      Description

      PostgreSQL - lastInsertId fails because sequence name on table with column alias on primary key does not work.

      DDL created sequence name: <table>_<column name>
      Last Insert ID sequence name: <table>_<identifier> (identifer is the field name which can be different to the column name)

        Activity

        Show
        Enrico Stahn added a comment - Patch: http://github.com/estahn/doctrine1/tree/DC-832 http://github.com/estahn/doctrine1/commit/5921da9fe159844e354fd280dca8cc156a8680a7
        Hide
        Jonathan H. Wage added a comment -
        Show
        Jonathan H. Wage added a comment - Thanks, fixed by http://trac.doctrine-project.org/changeset/7684

          People

          • Assignee:
            Guilherme Blanco
            Reporter:
            Enrico Stahn
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: