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

MYSQL_TYPE_BIT column-wise binding crashes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Not a Bug
    • 3.3.5
    • N/A
    • Prepared Statements
    • None
    • MacOS

    Description

      This is part of my code, but it crashes during execution. Please let me know if I made any mistake or this is a bug.

      MYSQL_BIND bind;
      const char *data[]=

      {"1","0"}

      ;

      bind.buffer_type = MYSQL_TYPE_BIT;
      bind.buffer = data;

      mysql_stmt_attr_set(insertStmt, STMT_ATTR_ARRAY_SIZE, &numRows);
      mysql_stmt_bind_param(insertStmt, bind);

      mysql_stmt_execute(insertStmt);

      I also tried the same code except for having
      bind.buffer_type = MYSQL_TYPE_STRING;

      It did not crash, but I could not fetch the correct data back.

      Attachments

        Activity

          People

            georg Georg Richter
            hexuan Sharon He
            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.