summaryrefslogtreecommitdiff
path: root/modules/extra/m_sqlite.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-30 21:36:49 -0400
committerAdam <Adam@anope.org>2012-09-30 21:36:49 -0400
commitb937d6310d9a7c0e2434200306b63d513cb2ae61 (patch)
tree2fe942e89aa43e41d38e803d050a4ace23c81818 /modules/extra/m_sqlite.cpp
parentad37bc9639304f78247d03e6a27fbc2c798926da (diff)
timestamp column is a special case too
Diffstat (limited to 'modules/extra/m_sqlite.cpp')
-rw-r--r--modules/extra/m_sqlite.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/extra/m_sqlite.cpp b/modules/extra/m_sqlite.cpp
index 3df0a25d9..f0db04c66 100644
--- a/modules/extra/m_sqlite.cpp
+++ b/modules/extra/m_sqlite.cpp
@@ -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 + "` (";