From a4f3a9faf2ecc5bb398bbf45cee8f61efe9d321d Mon Sep 17 00:00:00 2001 From: cxl Date: Fri, 3 May 2013 08:04:55 +0000 Subject: [PATCH] Sql: SqlSet::operator==, != git-svn-id: svn://ultimatepp.org/upp/trunk@6024 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Sql/Sqlexp.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/uppsrc/Sql/Sqlexp.h b/uppsrc/Sql/Sqlexp.h index 69944b347..2cd995b4e 100644 --- a/uppsrc/Sql/Sqlexp.h +++ b/uppsrc/Sql/Sqlexp.h @@ -433,7 +433,9 @@ public: String operator()() const; String operator()(int at) const; String operator()(int at, byte cond) const; - bool IsEmpty() const { return text.IsEmpty(); } + bool IsEmpty() const { return text.IsEmpty(); } + bool operator==(const SqlSet& b) const { return text == b.text && priority == b.priority; } + bool operator!=(const SqlSet& b) const { return !operator==(b); } SqlSet& Cat(const SqlVal& val); // adding a member SqlSet& Cat(const SqlSet& set);