Doctrine DBAL
  1. Doctrine DBAL
  2. DBAL-660

[GH-409] [DBAL-81] Add possibility to set the auto-commit mode for a connection

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

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

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

      Message:

      This PR makes auto-commit mode configurable for a connection (as proposed in DBAL-81(http://www.doctrine-project.org/jira/browse/DBAL-81)).
      The implementation adds methods to get and set the auto-commit mode on a connection object. When NOT in auto-commit mode, each `commit()` and `rollBack()` call automatically start a new transaction after the operation is finished. Aditionally a call to `connect()` starts a new transaction if not already connected.
      When IN auto-commit mode, the behaviour is the same as it is with the current implementation.
      When switching auto-commit mode, all current active transactions are committed.

        Activity

        Hide
        Doctrine Bot added a comment -

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

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

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

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

          People

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

            Dates

            • Created:
              Updated:
              Resolved: