mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
fix(Data/MySQL): replace deprecated mysql_stmt_bind_param() with mysql_stmt_bind_named_param()
This commit is contained in:
@@ -80,8 +80,8 @@ void StatementExecutor::bindParams(MYSQL_BIND* params, std::size_t count)
|
||||
|
||||
if (count == 0) return;
|
||||
|
||||
if (mysql_stmt_bind_param(_pHandle, params) != 0)
|
||||
throw StatementException("mysql_stmt_bind_param() error ", _pHandle, _query);
|
||||
if (mysql_stmt_bind_named_param(_pHandle, params, count, nullptr) != 0)
|
||||
throw StatementException("mysql_stmt_bind_named_param() error ", _pHandle, _query);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user