1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 13:03:14 +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
@@ -372,7 +372,7 @@ std::vector<Query> MySQLService::CreateTable(const Anope::string &table, const D
if (known_cols.empty())
{
Anope::string query_text = "CREATE TABLE `" + table + "` (`id` int(10) unsigned NOT NULL AUTO_INCREMENT,"
" `timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP";
" `timestamp` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP";
for (Data::Map::const_iterator it = data.data.begin(), it_end = data.data.end(); it != it_end; ++it)
{
known_cols.insert(it->first);