mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 13:02:40 +00:00
Allow database JSON operations in conditions
This commit is contained in:
parent
82a64a3729
commit
990d0a962f
2 changed files with 7 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue