Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-523

COM_STMT_CLOSE send to server after prepare fail

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not a Bug
    • Affects Version/s: None
    • Fix Version/s: N/A
    • Component/s: Other
    • Labels:
      None

      Description

      COM_STMT_CLOSE packet is sent to server even after PREPARE fail.
      example to reproduced :

      MYSQL_STMT *stmt;
      stmt= mysql_stmt_init(mysql);
      rc= mysql_stmt_prepare(stmt, SL("wrong query"));
      mysql_stmt_close(stmt); => fail with error prepared statement with id 0 fail
      

      (an error is only send back when using maxscale, see https://travis-ci.com/github/mariadb-corporation/mariadb-connector-c/builds/215050216)

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            diego dupin Diego Dupin
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration