mirror of https://github.com/adamdruppe/arsd.git
- sysTimeToValue should be in the MySql Class not the MySqlResult class
This commit is contained in:
parent
6734ac6cf3
commit
a863d6639a
8
mysql.d
8
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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue