summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-01-27 13:55:42 -0500
committerAdam <Adam@anope.org>2013-01-27 13:55:42 -0500
commit6b2aad734ec9a7f125d07bba8826c1548cc2ef48 (patch)
treea516fe33d0e99c12b0122d90c4e0be3de5faf6ac
parent98ccbe2b06cdf8934df05ffc7986f72351fa0e27 (diff)
Fixed SQL::Data::IsEqual to really only return if the two are completely equal. Fixes oddities with caching objects that are actually updated.
-rw-r--r--modules/extra/sql.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/extra/sql.h b/modules/extra/sql.h
index e2daf49da..a62f2fba3 100644
--- a/modules/extra/sql.h
+++ b/modules/extra/sql.h
@@ -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;
}