Sql: SqlSet::operator==, !=

git-svn-id: svn://ultimatepp.org/upp/trunk@6024 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2013-05-03 08:04:55 +00:00
parent cd62890d88
commit a4f3a9faf2

View file

@ -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);