mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 18:22:59 +02:00
fix(Data/MySQL): replace deprecated mysql_stmt_bind_param() with mysql_stmt_bind_named_param()
This commit is contained in:
@@ -205,7 +205,7 @@ void SQLExecutor::bareboneMySQLTest(const char* host, const char* user, const ch
|
||||
bind_param[4].buffer = &fifth;
|
||||
bind_param[4].buffer_type = MYSQL_TYPE_FLOAT;
|
||||
|
||||
rc = mysql_stmt_bind_param(hstmt, bind_param);
|
||||
rc = mysql_stmt_bind_named_param(hstmt, bind_param, 5, nullptr);
|
||||
assertTrue (rc == 0);
|
||||
|
||||
rc = mysql_stmt_execute(hstmt);
|
||||
|
||||
Reference in New Issue
Block a user