diff options
author | Christian Weber | 2010-01-18 12:00:16 +0000 |
---|---|---|
committer | Christian Weber | 2010-01-18 12:00:16 +0000 |
commit | b2294cc361b14ecb77912c028665b18781c3f289 (patch) | |
tree | 4d0eda6e195636523327ba6ea8845ebb6f8a3757 /it_dbi.class | |
parent | 7fff1b51ac0379138f52cad6d520c80dccbffa68 (diff) | |
download | itools-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.class | 2 |
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) : ''; |