diff options
| author | ilotterytea <iltsu@alright.party> | 2025-07-03 23:46:12 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-07-03 23:46:12 +0500 |
| commit | 14bcfb4d27b331cf5f667ce8e43c710915f900c9 (patch) | |
| tree | 3da6fe0a475f7e5aa62881f22a9221968e7e8d6f | |
| parent | ea5210e15bd7a19367e4cdbb97688b0905946964 (diff) | |
fix: use bool pointer instead of my_bool
| -rw-r--r-- | bot/src/database.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<MYSQL_BIND> bind_res(num_fields); std::vector<std::string> bufs(num_fields); std::vector<unsigned long> lengths_out(num_fields); - std::vector<my_bool> is_null(num_fields); + std::vector<bool *> 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<bool *>(&is_null[i]); } if (mysql_stmt_bind_result(stmt, bind_res.data())) { |
