From a863d6639a9df9f8506d3e911daab4f2b68440db Mon Sep 17 00:00:00 2001 From: Sam Larkin Date: Mon, 30 Sep 2019 15:58:07 -0600 Subject: [PATCH] - sysTimeToValue should be in the MySql Class not the MySqlResult class --- mysql.d | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mysql.d b/mysql.d index b565226..b45c382 100644 --- a/mysql.d +++ b/mysql.d @@ -74,9 +74,6 @@ class MySqlResult : ResultSet { mysql_free_result(result); } - string sysTimeToValue(SysTime s) { - return "cast('" ~ escape(s.toISOExtString()) ~ "' as datetime)"; - } MYSQL_FIELD[] fields() { int numFields = mysql_num_fields(result); @@ -222,6 +219,11 @@ class MySql : Database { query("START TRANSACTION"); } + + string sysTimeToValue(SysTime s) { + return "cast('" ~ escape(s.toISOExtString()) ~ "' as datetime)"; + } + string error() { return fromCstring(mysql_error(mysql)); }