diff --git a/.travis.yml b/.travis.yml index a937f78d..0d53c3a7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/orm_lib/inc/drogon/orm/Criteria.h b/orm_lib/inc/drogon/orm/Criteria.h index 45e968f6..fa1b10a9 100644 --- a/orm_lib/inc/drogon/orm/Criteria.h +++ b/orm_lib/inc/drogon/orm/Criteria.h @@ -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: