mirror of
https://github.com/anope/anope.git
synced 2026-07-08 04:23:14 +02:00
Fixed SQL::Data::IsEqual to really only return if the two are completely equal. Fixes oddities with caching objects that are actually updated.
This commit is contained in:
@@ -45,6 +45,9 @@ namespace SQL
|
||||
for (std::map<Anope::string, std::stringstream *>::const_iterator it = o->data.begin(), it_end = o->data.end(); it != it_end; ++it)
|
||||
if (!this->data.count(it->first) || it->second->str() != this->data[it->first]->str())
|
||||
return false;
|
||||
for (std::map<Anope::string, std::stringstream *>::const_iterator it = this->data.begin(), it_end = this->data.end(); it != it_end; ++it)
|
||||
if (!o->data.count(it->first) || it->second->str() != o->data[it->first]->str())
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user