1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 11:36:37 +02:00

Bug #1445 - Empty out columns in SQL we have no data for on

insert. This is caused from serialize() only setting a key on
certain conditions and otherwise doing nothing at all.
This commit is contained in:
Adam
2012-09-30 20:26:40 -04:00
parent 56df1abdd8
commit ad37bc9639
5 changed files with 19 additions and 7 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ class DBMySQL : public Module, public Pipe
continue;
obj->UpdateCache();
const Serialize::Data &data = obj->serialize();
Serialize::Data data = obj->serialize();
std::vector<SQLQuery> create = this->SQL->CreateTable(this->prefix + obj->serialize_name(), data);
for (unsigned i = 0; i < create.size(); ++i)