Skip to content

Commit

Permalink
Merge pull request #164 from mariux64/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
donald authored Aug 27, 2024
2 parents 41ef7fd + 2f63c50 commit 9062e90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 4 additions & 5 deletions mx_mysql.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,13 @@ static int mx__mysql_stmt_bind_result(struct mx_mysql_stmt *stmt)

static int mx__mysql_stmt_execute(struct mx_mysql_stmt *stmt)
{
int res;

assert(stmt);
assert(stmt->stmt);

res = mysql_stmt_execute(stmt->stmt);
if (res == 0)
return 0;
do {
if (mysql_stmt_execute(stmt->stmt) == 0)
return 0;
} while (mysql_stmt_errno(stmt->stmt) == ER_LOCK_DEADLOCK);

mx_mysql_save_error(mysql_stmt_error(stmt->stmt));

Expand Down
1 change: 0 additions & 1 deletion mxqkill.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,5 +461,4 @@ int main(int argc, char *argv[])

mx_mysql_finish(&mysql);
mx_log_info("MySQL: Connection to database closed.");
return 1;
}

0 comments on commit 9062e90

Please sign in to comment.