mirror of
https://github.com/mariadb-corporation/mariadb-connector-python.git
synced 2025-07-30 12:57:47 +00:00
Check return code of db_generate_bulk_request
When inserting data via parameter callback function, an error will be raised.
This commit is contained in:
@ -1225,7 +1225,10 @@ MrdbCursor_execute_bulk(MrdbCursor *self)
|
||||
mysql_stmt_bind_param(self->stmt, self->params);
|
||||
|
||||
if (!(buf= self->connection->mysql->methods->db_execute_generate_request(self->stmt, &buflen, 1)))
|
||||
{
|
||||
mariadb_throw_exception(self->stmt, NULL, 1, NULL);
|
||||
goto error;
|
||||
}
|
||||
|
||||
if ((rc= Mrdb_execute_direct(self, self->parseinfo.statement, self->parseinfo.statement_len)))
|
||||
{
|
||||
|
Reference in New Issue
Block a user