refs issue #7929 add support for Postgres native uuid datatype

This commit is contained in:
Seth Tanner 2016-01-14 09:37:06 -08:00
parent a530414a88
commit 66f3a7e487
2 changed files with 7 additions and 1 deletions

View file

@ -68,7 +68,8 @@ class Postgres extends DboSource {
'binary' => array('name' => 'bytea'),
'boolean' => array('name' => 'boolean'),
'number' => array('name' => 'numeric'),
'inet' => array('name' => 'inet')
'inet' => array('name' => 'inet'),
'uuid' => array('name' => 'uuid')
);
/**

View file

@ -345,6 +345,11 @@ class DboSource extends DataSource {
case 'boolean':
return $this->_connection->quote($this->boolean($data, true), PDO::PARAM_BOOL);
case 'string':
if ($data === '') {
return 'NULL';
} else {
return $this->_connection->quote($data, PDO::PARAM_STR);
}
case 'text':
return $this->_connection->quote($data, PDO::PARAM_STR);
default: