1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 23:06:36 +02:00
This commit is contained in:
Adam
2011-11-08 17:29:16 -05:00
parent 97b9055f92
commit b5ff856f47
85 changed files with 1277 additions and 1278 deletions
+3 -3
View File
@@ -44,7 +44,7 @@ class SQLiteService : public SQLProvider
SQLResult RunQuery(const SQLQuery &query);
SQLQuery CreateTable(const Anope::string &table, const SerializableBase::serialized_data &data);
SQLQuery CreateTable(const Anope::string &table, const Serializable::serialized_data &data);
SQLQuery GetTables();
@@ -181,10 +181,10 @@ SQLResult SQLiteService::RunQuery(const SQLQuery &query)
return result;
}
SQLQuery SQLiteService::CreateTable(const Anope::string &table, const SerializableBase::serialized_data &data)
SQLQuery SQLiteService::CreateTable(const Anope::string &table, const Serializable::serialized_data &data)
{
Anope::string query_text = "CREATE TABLE `" + table + "` (", key_buf;
for (SerializableBase::serialized_data::const_iterator it = data.begin(), it_end = data.end(); it != it_end; ++it)
for (Serializable::serialized_data::const_iterator it = data.begin(), it_end = data.end(); it != it_end; ++it)
{
query_text += "`" + it->first + "` ";
if (it->second.getType() == Serialize::DT_INT)