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

Unsuccessful mariadb_stmt_execute_direct makes connection unesuful

Details

    • Bug
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None
    • None
    • Windows(probably does not matter), 10.2 server branch, master C/C branch

    Description

      static int conc_217(MYSQL *mysql)

      { MYSQL_STMT *stmt= mysql_stmt_init(mysql); int rc= mariadb_stmt_execute_direct(stmt, "SELECT * from non_existent", -1); FAIL_IF(rc != 1, "Error expected"); /* No matter we do after this, nothing will work on this connection */ mysql_stmt_close(stmt); check_mysql_rc(mysql_query(ma, "drop table if exists t_count"), mysql); return OK; }

      Attachments

        Activity

          Lawrin Lawrin Novitsky created issue -
          Lawrin Lawrin Novitsky made changes -
          Field Original Value New Value
          Description static int conc_212(MYSQL *mysql)
          {
            MYSQL_STMT *stmt= mysql_stmt_init(mysql);
            int rc= mariadb_stmt_execute_direct(stmt, "SELECT * from non_existent", -1);
            FAIL_IF(rc != 1, "Error expected");
            /* No matter we do after this, nothing will work on this connection */
            mysql_stmt_close(stmt);
            check_mysql_rc(mysql_query(ma, "drop table if exists t_count"), mysql);

            return OK;
          }
          static int conc_217(MYSQL *mysql)
          {
            MYSQL_STMT *stmt= mysql_stmt_init(mysql);
            int rc= mariadb_stmt_execute_direct(stmt, "SELECT * from non_existent", -1);
            FAIL_IF(rc != 1, "Error expected");
            /* No matter we do after this, nothing will work on this connection */
            mysql_stmt_close(stmt);
            check_mysql_rc(mysql_query(ma, "drop table if exists t_count"), mysql);

            return OK;
          }
          julien.fritsch Julien Fritsch made changes -
          Workflow MariaDB connectors [ 78458 ] MariaDB v4 [ 160806 ]

          People

            georg Georg Richter
            Lawrin Lawrin Novitsky
            Votes:
            0 Vote for this issue
            Watchers:
            1 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.