Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-10142 PL/SQL parser
  3. MDEV-10655

sql_mode=ORACLE: Anonymous blocks

    XMLWordPrintable

Details

    Description

      MariaDB uses BEGIN NOT ATOMIC to start anonymous blocks that can be used directly, outside of an SP context:
      MariaDB:

      delimiter ;;
      BEGIN NOT ATOMIC
       ...
      END;;
      

      When running with sql_mode=ORACLE, MariaDB will understand this syntax for anonymous blocks.

      DECLARE
        ...
      BEGIN
        ...
      END;;
      

      In ORACLE mode, BEGIN is same as BEGIN NOT ATOMIC

      BEGIN
       ...
      END;;
      

      This change will disallow BEGIN and BEGIN WORK as a transaction start for sql_mode=ORACLE. But one can still use START TRANSACTION if needed.

      Attachments

        Activity

          People

            bar Alexander Barkov
            bar Alexander Barkov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2d
                2d
                Remaining:
                Time Spent - 3h Remaining Estimate - 1d 5h
                1d 5h
                Logged:
                Time Spent - 3h Remaining Estimate - 1d 5h
                3h

                Git Integration

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