Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-2773

Configure PDO to cause exceptions on erroneous queries

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.0, 4.1.0, 4.2.0, 4.3.0
    • Fix Version/s: 4.3.1
    • Component/s: None
    • Labels:
      None

      Description

      See https://www.blesta.com/forums/index.php?/topic/11795-pdo-not-throwing-exceptions-on-errors/

      PDO is configured to fail silently due to PDO::ATTR_ERRMODE set to 0 (silent). It should be set to PDO::ERRMODE_EXCEPTION (2) to throw exceptions for erroneous queries.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            tyson Tyson Phillips (Inactive)
            Reporter:
            tyson Tyson Phillips (Inactive)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              13/Aug/18

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 51 minutes
              51m

                Agile