mirror of
https://github.com/anope/anope.git
synced 2026-06-29 23:06:36 +02:00
Windows
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user