add '"' arount sequence in getInsertID()

This commit is contained in:
Uwe Steinmann 2017-02-13 20:11:44 +01:00
parent b7c32d8295
commit 7ebd92d53a

View File

@ -301,7 +301,7 @@ class SeedDMS_Core_DatabaseAccess {
*/ */
function getInsertID($tablename='', $fieldname='id') { /* {{{ */ function getInsertID($tablename='', $fieldname='id') { /* {{{ */
if($this->_driver == 'pgsql') if($this->_driver == 'pgsql')
return $this->_conn->lastInsertId($tablename.'_'.$fieldname.'_seq'); return $this->_conn->lastInsertId('"'.$tablename.'_'.$fieldname.'_seq"');
else else
return $this->_conn->lastInsertId(); return $this->_conn->lastInsertId();
} /* }}} */ } /* }}} */