Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-644

[GH-395] Revert "remove unnecessary code from Connection::insert"

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      This issue is created automatically through a Github pull request on behalf of lastzero:

      Url: https://github.com/doctrine/dbal/pull/395

      Message:

      This reverts commit 5b86fad8740135ed2cfee9b6da0b7ddc50f8a066 which was breaking inserts without explicitly set values. This can happen when using an auto increment primary key in conjunction with all other columns having a default. The insert should still be possible in this case, even if the row just contains defaults or null values afterwards.

        Activity

        Hide
        Doctrine Bot added a comment -

        A related Github Pull-Request [GH-395] was closed:
        https://github.com/doctrine/dbal/pull/395

        Show
        Doctrine Bot added a comment - A related Github Pull-Request [GH-395] was closed: https://github.com/doctrine/dbal/pull/395

          People

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

            Dates

            • Created:
              Updated:
              Resolved: