Fixed the Drizzle and libAttachSQL drivers broken by the autoreconnect patch.

This commit is contained in:
Alexey Kopytov
2014-10-24 17:16:53 +04:00
parent 7ea2db661e
commit 1a586a0dca
2 changed files with 2 additions and 2 deletions

View File

@ -454,7 +454,7 @@ int attachsql_drv_query(db_conn_t *sb_conn, const char *query,
if (rc == 1213 || rc == 1205 || rc == 1020)
{
attachsql_error_free(error);
return SB_DB_ERROR_DEADLOCK;
return SB_DB_ERROR_RESTART_TRANSACTION;
}
log_text(LOG_ALERT, "libAttachSQL Query Failed: %u:%s", attachsql_error_code(error), attachsql_error_message(error));
attachsql_error_free(error);

View File

@ -432,7 +432,7 @@ int drizzle_drv_query(db_conn_t *sb_conn, const char *query,
*/
if (rc == 1213 || rc == 1205 ||
rc == 1020)
return SB_DB_ERROR_DEADLOCK;
return SB_DB_ERROR_RESTART_TRANSACTION;
log_text(LOG_ALERT, "Drizzle Query Failed: %u:%s",
drizzle_result_error_code(result),
drizzle_result_error(result));