From 5396f9c02febc15b1ba69939d39ddc17554b1f7a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 18 May 2011 10:12:32 +0000 Subject: [PATCH] fix for PostgreSQL notification update not working: some stuff is NOT to be quoted --- phpgwapi/inc/class.schema_proc.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/class.schema_proc.inc.php b/phpgwapi/inc/class.schema_proc.inc.php index 965fbfba3c..1715e61e17 100644 --- a/phpgwapi/inc/class.schema_proc.inc.php +++ b/phpgwapi/inc/class.schema_proc.inc.php @@ -666,6 +666,11 @@ class schema_proc { $value = 'NULL'; } + // some stuff is NOT to be quoted + elseif (in_array(strtoupper($data['default']),array('CURRENT_TIMESTAMP','CURRENT_DATE','NULL','NOW()'))) + { + $value = $data['default']; + } else { $value = $this->m_odb->quote(isset($data['default']) ? $data['default'] : '',$data['type']);