1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

Fix for CONC-217: mariadb_stmt_execute_direct: Clear error message from mysql_stmt_execute if mysql_stmt_prepare failed

This commit is contained in:
Georg Richter
2016-11-26 13:47:43 +01:00
parent 8695a17cbc
commit c89d5d38e0
2 changed files with 16 additions and 0 deletions

View File

@@ -2235,5 +2235,6 @@ fail:
stmt->state= MYSQL_STMT_INITTED;
SET_CLIENT_STMT_ERROR(stmt, mysql->net.last_errno, mysql->net.sqlstate,
mysql->net.last_error);
mysql->methods->db_stmt_flush_unbuffered(stmt);
return 1;
}