From 7a21ab63eeb14a0adcbf5af446f8a4496a993c3f Mon Sep 17 00:00:00 2001 From: fed <58637860+fedddddd@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:15:17 +0100 Subject: [PATCH] Fix build on x86 --- include/sqlpp11/mysql/connection.h | 12 ++++++------ include/sqlpp11/mysql/detail/connection_handle.h | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/sqlpp11/mysql/connection.h b/include/sqlpp11/mysql/connection.h index e23e0e76..4abcbd8b 100644 --- a/include/sqlpp11/mysql/connection.h +++ b/include/sqlpp11/mysql/connection.h @@ -203,20 +203,20 @@ namespace sqlpp return {std::move(result_handle)}; } - size_t insert_impl(const std::string& statement) + uint64_t insert_impl(const std::string& statement) { execute_statement(_handle, statement); return mysql_insert_id(_handle->native_handle()); } - size_t update_impl(const std::string& statement) + uint64_t update_impl(const std::string& statement) { execute_statement(_handle, statement); return mysql_affected_rows(_handle->native_handle()); } - size_t remove_impl(const std::string& statement) + uint64_t remove_impl(const std::string& statement) { execute_statement(_handle, statement); return mysql_affected_rows(_handle->native_handle()); @@ -234,19 +234,19 @@ namespace sqlpp return prepared_statement._handle; } - size_t run_prepared_insert_impl(prepared_statement_t& prepared_statement) + uint64_t run_prepared_insert_impl(prepared_statement_t& prepared_statement) { execute_prepared_statement(*prepared_statement._handle); return mysql_stmt_insert_id(prepared_statement._handle->mysql_stmt); } - size_t run_prepared_update_impl(prepared_statement_t& prepared_statement) + uint64_t run_prepared_update_impl(prepared_statement_t& prepared_statement) { execute_prepared_statement(*prepared_statement._handle); return mysql_stmt_affected_rows(prepared_statement._handle->mysql_stmt); } - size_t run_prepared_remove_impl(prepared_statement_t& prepared_statement) + uint64_t run_prepared_remove_impl(prepared_statement_t& prepared_statement) { execute_prepared_statement(*prepared_statement._handle); return mysql_stmt_affected_rows(prepared_statement._handle->mysql_stmt); diff --git a/include/sqlpp11/mysql/detail/connection_handle.h b/include/sqlpp11/mysql/detail/connection_handle.h index 1629d53c..471a3784 100644 --- a/include/sqlpp11/mysql/detail/connection_handle.h +++ b/include/sqlpp11/mysql/detail/connection_handle.h @@ -68,7 +68,7 @@ namespace sqlpp struct connection_handle { std::shared_ptr config; - std::unique_ptr mysql; + std::unique_ptr mysql; connection_handle(const std::shared_ptr& conf) : config{conf},