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

Error code not set in mysql_stmt_send_long_data

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 2.1
    • 3.0.0, 2.2.0
    • None
    • None
    • All

    Description

      If you call mysql_stmt_send_long_data while the MYSQL* is in the wrong state, it returns the fact that there is an error, but no error code.
      See line 1826 of my_stmt.c.

      To correct, I think the conditional on line 1816 needs to be changed from:
      if (stmt->mysql->status== MYSQL_STATUS_READY && (length || !stmt->params[param_number].long_data_used))
      {

      To:
      if (stmt->mysql->status != MYSQL_STATUS_READY)
      SET_CLIENT_STMT_ERROR(stmt, CR_COMMANDS_OUT_OF_SYNC, SQLSTATE_UNKNOWN, 0);
      DBUG_RETURN(1);
      }

      if (length || !stmt->params[param_number].long_data_used))
      {

      Attachments

        Activity

          People

            georg Georg Richter
            A812371 Matt Fagan
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.