Skip to content

Commit 21e9ef2

Browse files
committed
Replace mysql_stmt_bind_param() with mysql_stmt_bind_named_param()
1 parent 08ce2ec commit 21e9ef2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dbdimp.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2861,7 +2861,11 @@ my_ulonglong mysql_st_internal_execute41(
28612861

28622862
if (num_params > 0 && !(*has_been_bound))
28632863
{
2864+
#if MYSQL_VERSION_ID >= 80300
2865+
if (mysql_stmt_bind_named_param(stmt,bind,num_params, NULL))
2866+
#else
28642867
if (mysql_stmt_bind_param(stmt,bind))
2868+
#endif
28652869
goto error;
28662870

28672871
*has_been_bound= 1;

0 commit comments

Comments
 (0)