From fe1fe6fe1ca417cd8510bfc4ec81f83dbc2492fc Mon Sep 17 00:00:00 2001 From: alice <58637860+alicealys@users.noreply.github.com> Date: Tue, 28 Jul 2026 01:33:36 +0200 Subject: [PATCH] small fix --- src/component/mysql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/mysql.cpp b/src/component/mysql.cpp index 52f953c..a20a4f5 100644 --- a/src/component/mysql.cpp +++ b/src/component/mysql.cpp @@ -521,7 +521,7 @@ namespace mysql const auto stmt = mysql_stmt_init(handle); if (mysql_stmt_prepare(stmt, query.data(), query.size()) != 0 || - mysql_stmt_bind_param(stmt, binds) != 0 || + (binds != nullptr && mysql_stmt_bind_param(stmt, binds)) != 0 || mysql_stmt_execute(stmt) != 0) { result.error = mysql_stmt_error(stmt);