Add the 'like' to the Criteria class

This commit is contained in:
antao 2018-12-05 09:50:36 +08:00
parent a7f82face0
commit e8fcc49c37
2 changed files with 6 additions and 0 deletions

View File

@ -19,6 +19,7 @@ addons:
- uuid-dev
- zlib1g-dev
- postgresql-server-dev-10
- libmariadbclient-dev
- openssl
- libssl-dev
- build-essential
@ -30,6 +31,7 @@ addons:
- libtool
- lz4
- postgresql
- mariadb
script:
- ./build.sh

View File

@ -33,6 +33,7 @@ enum class CompareOperator
GE,
LT,
LE,
LIKE,
IsNull,
IsNotNull
};
@ -67,6 +68,9 @@ class Criteria
case CompareOperator::LE:
_condString += " <= $?";
break;
case CompareOperator::LIKE:
_condString += " like $?";
break;
case CompareOperator::IsNull:
case CompareOperator::IsNotNull:
default: