1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 23:36:39 +02:00

Fixed some 100% cpu bugs with the new SQL stuff, and fixed sqlite+db_sql_live

This commit is contained in:
Adam
2012-05-08 18:04:49 -04:00
parent 25586f3246
commit 820e4edc2b
7 changed files with 41 additions and 14 deletions
+7
View File
@@ -53,6 +53,8 @@ class SQLiteService : public SQLProvider
SQLQuery GetTables(const Anope::string &prefix);
Anope::string BuildQuery(const SQLQuery &q);
Anope::string FromUnixtime(time_t);
};
class ModuleSQLite : public Module
@@ -297,5 +299,10 @@ Anope::string SQLiteService::BuildQuery(const SQLQuery &q)
return real_query;
}
Anope::string SQLiteService::FromUnixtime(time_t t)
{
return "datetime('" + stringify(t) + "', 'unixepoch')";
}
MODULE_INIT(ModuleSQLite)