1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 17:26:38 +02:00

timestamp column is a special case too

This commit is contained in:
Adam
2012-09-30 21:36:49 -04:00
parent ad37bc9639
commit b937d6310d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -258,7 +258,7 @@ SQLQuery SQLiteService::BuildInsert(const Anope::string &table, unsigned int id,
/* Empty columns not present in the data set */
const std::set<Anope::string> &known_cols = this->active_schema[table];
for (std::set<Anope::string>::iterator it = known_cols.begin(), it_end = known_cols.end(); it != it_end; ++it)
if (*it != "id" && data.count(*it) == 0)
if (*it != "id" && *it != "timestamp" && data.count(*it) == 0)
data[*it] << "";
Anope::string query_text = "REPLACE INTO `" + table + "` (";