Allow database JSON operations in conditions

This commit is contained in:
Cory Thompson 2017-01-24 19:33:12 +11:00
parent 82a64a3729
commit 990d0a962f
2 changed files with 7 additions and 5 deletions

View file

@ -2897,7 +2897,8 @@ class DboSource extends DataSource {
$isKey = (
strpos($key, '(') !== false ||
strpos($key, ')') !== false ||
strpos($key, '|') !== false
strpos($key, '|') !== false ||
strpos($key, '->') !== false
);
$key = $isKey ? $this->_quoteFields($key) : $this->name($key);
}