mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-01 06:27:15 +00:00
add '"' arount sequence in getInsertID()
This commit is contained in:
parent
b7c32d8295
commit
7ebd92d53a
|
@ -301,7 +301,7 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
*/
|
||||
function getInsertID($tablename='', $fieldname='id') { /* {{{ */
|
||||
if($this->_driver == 'pgsql')
|
||||
return $this->_conn->lastInsertId($tablename.'_'.$fieldname.'_seq');
|
||||
return $this->_conn->lastInsertId('"'.$tablename.'_'.$fieldname.'_seq"');
|
||||
else
|
||||
return $this->_conn->lastInsertId();
|
||||
} /* }}} */
|
||||
|
|
Loading…
Reference in New Issue
Block a user