summaryrefslogtreecommitdiff
path: root/it_dbi.class
diff options
context:
space:
mode:
authorChristian Weber2010-01-18 12:00:16 +0000
committerChristian Weber2010-01-18 12:00:16 +0000
commitb2294cc361b14ecb77912c028665b18781c3f289 (patch)
tree4d0eda6e195636523327ba6ea8845ebb6f8a3757 /it_dbi.class
parent7fff1b51ac0379138f52cad6d520c80dccbffa68 (diff)
downloaditools-b2294cc361b14ecb77912c028665b18781c3f289.tar.gz
itools-b2294cc361b14ecb77912c028665b18781c3f289.tar.bz2
itools-b2294cc361b14ecb77912c028665b18781c3f289.zip
escape field names (for fields like Usage, Date, ...)
Diffstat (limited to 'it_dbi.class')
-rw-r--r--it_dbi.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_dbi.class b/it_dbi.class
index 918fc4c..9daf2c3 100644
--- a/it_dbi.class
+++ b/it_dbi.class
@@ -237,7 +237,7 @@ function _set($tags, $allfields = false)
if (substr($field, 0, 1) == '-') # Unquoted value (always added)
$r[] = substr($field, 1)."=$value";
else if ($allfields || ($value !== $this->_data[$field]))
- $r[] = "$field=".(isset($value) ? $this->escape_string($value) : 'NULL');
+ $r[] = "`$field`=".(isset($value) ? $this->escape_string($value) : 'NULL');
}
return $r ? 'SET '.implode(', ', $r) : '';