Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-545

[GH-336] Fixing error code on DBALException (forwarding SQL Error Code).

    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 naroga:

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

      Message:

      '0' was the previous hardcoded error code. I'm just forwarding whatever SQL Error code might occur during a query.

      Previous to this fix, we'd have to check for whatever Exception was thrown before DBALException in order to get the error code.

      Useful when trying to come up with user-friendly error messages.

        Activity

        Hide
        Doctrine Bot added a comment -

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: