- Added a new @PrimaryKey annotation to replace the too-specific property-wise @Id
This commit is contained in:
1 parent
0e8443b1c1
commit
b20e537038
6 files changed
+33
-19
No files matched your search
+2
-1
@@ -8,6 +8,7 @@ class Where extends Fragment {
|
||||
const OPERATOR_LIKE = "LIKE";
|
||||
const OPERATOR_EQUAL = "=";
|
||||
const OPERATOR_NOT_EQUAL = "<>";
|
||||
const OPERATOR_REGEXP = "REGEXP";
|
||||
const CONDITION_AND = "AND";
|
||||
const CONDITION_OR = "OR";
|
||||
const CONDITION_NOT = "NOT";
|
||||
@@ -113,7 +114,7 @@ class Where extends Fragment {
|
||||
}
|
||||
|
||||
# whitelisting operators
|
||||
return in_array(strtoupper($this->operator), [ '=', '!=', '>', '>=', '<', '<=', '<>', 'LIKE', 'IS', 'IS NOT' ]) ? $this->operator : "=";
|
||||
return in_array(strtoupper($this->operator), [ '=', '!=', '>', '>=', '<', '<=', '<>', 'LIKE', 'IS', 'IS NOT', 'REGEXP' ]) ? $this->operator : "=";
|
||||
}
|
||||
|
||||
protected function value()
|
||||
|
||||
Reference in new issue
Block a user