From b2294cc361b14ecb77912c028665b18781c3f289 Mon Sep 17 00:00:00 2001 From: Christian Weber Date: Mon, 18 Jan 2010 12:00:16 +0000 Subject: escape field names (for fields like Usage, Date, ...) --- it_dbi.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_dbi.class') 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) : ''; -- cgit v1.2.3