Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-8451

SAVEPOINT does not set @@in_transaction

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Not a Bug
    • 5.3.12, 5.5, 10.0, 10.1
    • N/A
    • OTHER
    • None

    Description

      MariaDB [test]> SET SESSION autocommit = 0;
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [test]> SAVEPOINT x;
      Query OK, 0 rows affected (0.00 sec)
       
      MariaDB [test]> SELECT @@in_transaction;
      +------------------+
      | @@in_transaction |
      +------------------+
      |                0 |
      +------------------+
      1 row in set (0.00 sec)

      In this case, SAVEPOINT did nothing. I think that one of the following alternatives should be implemented:

      1) Implicitly start a transaction, and then create the savepoint.
      2) Issue an error.
      3) Like 1, but also issue a warning because there is probably a bug in an application.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            f_razzoli Federico Razzoli
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.