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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user