From 2d1c2c79ab0a8d78f57b68aebeaeca283a8ec084 Mon Sep 17 00:00:00 2001 From: Shauren Date: Wed, 10 Apr 2024 13:59:19 +0200 Subject: Core/DBLayer: Support retrieving DATE/DATETIME/TIMESTAMP column values directly without casting in sql (cherry picked from commit 404bb5b3c21b445ae21fbbfcfd7f51d255e07c39) --- src/server/database/Database/MySQLPreparedStatement.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/server/database/Database/MySQLPreparedStatement.h') diff --git a/src/server/database/Database/MySQLPreparedStatement.h b/src/server/database/Database/MySQLPreparedStatement.h index d348130097f..e30152f7f04 100644 --- a/src/server/database/Database/MySQLPreparedStatement.h +++ b/src/server/database/Database/MySQLPreparedStatement.h @@ -20,6 +20,7 @@ #include "DatabaseEnvFwd.h" #include "Define.h" +#include "Duration.h" #include #include @@ -47,6 +48,7 @@ class TC_DATABASE_API MySQLPreparedStatement void SetParameter(uint8 index, bool value); template void SetParameter(uint8 index, T value); + void SetParameter(uint8 index, SystemTimePoint value); void SetParameter(uint8 index, std::string const& value); void SetParameter(uint8 index, std::vector const& value); -- cgit v1.2.3