From 528b5938ec71abed396248cf5e00f346e685aaea Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 14 Aug 2024 02:40:48 +0100 Subject: Automatically determine SQL column type from the field. Also add more column types to ensure we are storing data in the best format in the database. --- modules/hostserv/hs_request.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'modules/hostserv/hs_request.cpp') diff --git a/modules/hostserv/hs_request.cpp b/modules/hostserv/hs_request.cpp index c11a1ad90..e6f30fd70 100644 --- a/modules/hostserv/hs_request.cpp +++ b/modules/hostserv/hs_request.cpp @@ -32,10 +32,10 @@ struct HostRequestImpl final void Serialize(Serialize::Data &data) const override { - data["nick"] << this->nick; - data["ident"] << this->ident; - data["host"] << this->host; - data.SetType("time", Serialize::Data::DT_INT); data["time"] << this->time; + data.Store("nick", this->nick); + data.Store("ident", this->ident); + data.Store("host", this->host); + data.Store("time", this->time); } static Serializable *Unserialize(Serializable *obj, Serialize::Data &data) -- cgit