summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_dbi.class2
1 files changed, 2 insertions, 0 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 316f3ca..79c3e03 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -413,6 +413,8 @@ function _where($params)
if ($dyncols_enabled && $this->_fields['dyncols'] && !$this->_fields[$field] && strpos($field, '(') === false)
$field = $this->_json_extract('dyncols', $field);
+ else if (it::match('^\w*[A-Z]\w+$', $field, 'casesensitive' => 1))
+ $field = $this->escape_name($field);
switch ($op)
{