fix for PostgreSQL notification update not working: some stuff is NOT to be quoted

This commit is contained in:
Ralf Becker 2011-05-18 10:12:32 +00:00
parent 614882c347
commit 5396f9c02f

View File

@ -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']);