1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 20:36:38 +02:00

The timestamp column in SQL should actually be null sometimes, and fixed some valgrind errors with db_sql_live

This commit is contained in:
Adam
2012-12-27 21:43:19 -05:00
parent 3fb4cf56b6
commit 379b2ccf92
6 changed files with 50 additions and 33 deletions
+1 -1
View File
@@ -209,7 +209,7 @@ std::vector<Query> SQLiteService::CreateTable(const Anope::string &table, const
if (known_cols.empty())
{
Anope::string query_text = "CREATE TABLE `" + table + "` (`id` INTEGER PRIMARY KEY, `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP";
Anope::string query_text = "CREATE TABLE `" + table + "` (`id` INTEGER PRIMARY KEY, `timestamp` timestamp DEFAULT CURRENT_TIMESTAMP";
for (Data::Map::const_iterator it = data.data.begin(), it_end = data.data.end(); it != it_end; ++it)
{