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)); }