From 6b2aad734ec9a7f125d07bba8826c1548cc2ef48 Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 27 Jan 2013 13:55:42 -0500 Subject: [PATCH] Fixed SQL::Data::IsEqual to really only return if the two are completely equal. Fixes oddities with caching objects that are actually updated. --- modules/extra/sql.h | 3 +++ 1 file changed, 3 insertions(+) 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::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::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; }