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

Removing COM_STMT_CLOSE executes previous statement again.

    XMLWordPrintable

Details

    Description

      In branch 3.2-georg of Connector/C I tried to remove a COM_STMT_CLOSE before reusing a statement with mariadb_stmt_execute_direct, which ends up in strange behavior, since the previously executed statement was executed again.

      From general log:

      10882 Prepare  DROP TABLE IF EXISTS bulk_null
      10882 Execute  DROP TABLE IF EXISTS bulk_null
      10882 Prepare  CREATE TABLE bulk_null (a int not null auto_increment primary key, b varchar(20))
      10882 Execute  DROP TABLE IF EXISTS bulk_null
      

      How to repeat:
      Checkout branch 3.2-georg of Connector/C, build and run bulk1 test.

      If I replace execute_direct api calls by mysql_stmt_prepare and mysql_stmt_execute it works as expected.

      Attachments

        Activity

          People

            shulga Dmitry Shulga
            georg Georg Richter
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Git Integration

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