mirror of
https://github.com/anope/anope.git
synced 2026-06-24 18:26: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:
@@ -105,7 +105,7 @@ class DBSQL : 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