remove match/regexp support

These are only enabled if we implement `xFindFunction`, which we don't
This commit is contained in:
Colin Dellow 2018-07-05 21:49:28 -04:00
parent 025320d525
commit e83a21db15
3 changed files with 0 additions and 12 deletions

View File

@ -461,14 +461,10 @@ ConstraintOperator constraintOperatorFromSqlite(int op) {
return LessThan; return LessThan;
case SQLITE_INDEX_CONSTRAINT_GE: case SQLITE_INDEX_CONSTRAINT_GE:
return GreaterThanOrEqual; return GreaterThanOrEqual;
case SQLITE_INDEX_CONSTRAINT_MATCH:
return Match;
case SQLITE_INDEX_CONSTRAINT_LIKE: case SQLITE_INDEX_CONSTRAINT_LIKE:
return Like; return Like;
case SQLITE_INDEX_CONSTRAINT_GLOB: case SQLITE_INDEX_CONSTRAINT_GLOB:
return Glob; return Glob;
case SQLITE_INDEX_CONSTRAINT_REGEXP:
return Regexp;
case SQLITE_INDEX_CONSTRAINT_NE: case SQLITE_INDEX_CONSTRAINT_NE:
return NotEqual; return NotEqual;
case SQLITE_INDEX_CONSTRAINT_ISNOT: case SQLITE_INDEX_CONSTRAINT_ISNOT:

View File

@ -61,18 +61,12 @@ std::string Constraint::describe() const {
case GreaterThanOrEqual: case GreaterThanOrEqual:
rv.append(">="); rv.append(">=");
break; break;
case Match:
rv.append("MATCH");
break;
case Like: case Like:
rv.append("LIKE"); rv.append("LIKE");
break; break;
case Glob: case Glob:
rv.append("GLOB"); rv.append("GLOB");
break; break;
case Regexp:
rv.append("REGEXP");
break;
case NotEqual: case NotEqual:
rv.append("<>"); rv.append("<>");
break; break;

View File

@ -11,10 +11,8 @@ enum ConstraintOperator {
LessThanOrEqual, LessThanOrEqual,
LessThan, LessThan,
GreaterThanOrEqual, GreaterThanOrEqual,
Match,
Like, Like,
Glob, Glob,
Regexp,
NotEqual, NotEqual,
IsNot, IsNot,
IsNotNull, IsNotNull,