Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1796

Add method for setting database error handler

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2-B3
    • Component/s: Database, Deployment
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      SQL error upon deploy wasn't stopping deployment process, when db load balancer was used.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      1. introduce "kDBConnection::setErrorHandler($callback)" method, that will set given callback into "errorHandler" property
      2. introduce matching "IDBConnection::setErrorHandler($callback)" interface method
      3. introduce "kDBLoadBalancer::setErrorHandler($callback)" method, that will set given callback into "errorHandler" property and also call "kDBConnection::setErrorHandler" method for any connections, that were already opened in "connections" property

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2h
                  2h