From 7c23870f274018138371192b92f600f4b6af687b 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 d03ce29c480..2aa6d6ee44d 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 "MySQLWorkaround.h" #include #include @@ -48,6 +49,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