1
0
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:
Adam
2013-01-27 13:55:42 -05:00
parent 98ccbe2b06
commit 6b2aad734e
+3
View File
@@ -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;
}