From 14bcfb4d27b331cf5f667ce8e43c710915f900c9 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 3 Jul 2025 23:46:12 +0500 Subject: fix: use bool pointer instead of my_bool --- bot/src/database.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bot/src') diff --git a/bot/src/database.hpp b/bot/src/database.hpp index 2920438..8bc1721 100644 --- a/bot/src/database.hpp +++ b/bot/src/database.hpp @@ -209,7 +209,7 @@ namespace bot::db { std::vector bind_res(num_fields); std::vector bufs(num_fields); std::vector lengths_out(num_fields); - std::vector is_null(num_fields); + std::vector is_null(num_fields); for (int i = 0; i < num_fields; i++) { bufs[i].resize(1024); @@ -218,7 +218,7 @@ namespace bot::db { bind_res[i].buffer = bufs[i].data(); bind_res[i].buffer_length = bufs[i].size(); bind_res[i].length = &lengths_out[i]; - bind_res[i].is_null = &is_null[i]; + bind_res[i].is_null = reinterpret_cast(&is_null[i]); } if (mysql_stmt_bind_result(stmt, bind_res.data())) { -- cgit v1.2.3