diff options
author | David Flatz | 2018-10-25 18:28:47 +0200 |
---|---|---|
committer | David Flatz | 2018-10-25 18:28:47 +0200 |
commit | ddbe04f2924cfc6e3a00fd8df57d3ed14cff71fa (patch) | |
tree | 4d81b865fad72537d8b8f01de3fdfa3a8ca02461 /it_dbi.class | |
parent | 26515c537900698895e29f062aa2c219f56b0878 (diff) | |
download | itools-ddbe04f2924cfc6e3a00fd8df57d3ed14cff71fa.tar.gz itools-ddbe04f2924cfc6e3a00fd8df57d3ed14cff71fa.tar.bz2 itools-ddbe04f2924cfc6e3a00fd8df57d3ed14cff71fa.zip |
don't do JSON_EXTRACT when we use SQL functions with dyncols
Diffstat (limited to 'it_dbi.class')
-rw-r--r-- | it_dbi.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class index 76f4d1a..d3dbc11 100644 --- a/it_dbi.class +++ b/it_dbi.class @@ -383,7 +383,7 @@ function _where($params) $qval = $this->escape_string((string)$value); } - if ($dyncols_enabled && $this->_fields['dyncols'] && !$this->_fields[$field]) + if ($dyncols_enabled && $this->_fields['dyncols'] && !$this->_fields[$field] && strpos($field, '(') === false) $field = "JSON_EXTRACT(dyncols, " . $this->escape_string('$.' . $field) . ")"; switch ($op) |