Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Not a Bug
-
3.3.5
-
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[]=
;
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.