mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
fix getInsertID() for identifier in upper/lower case
This commit is contained in:
parent
cafdd457c8
commit
7467df155d
|
@ -314,9 +314,9 @@ class SeedDMS_Core_DatabaseAccess {
|
|||
* @return integer id used in last autoincrement
|
||||
*/
|
||||
function getInsertID($tablename='', $fieldname='id') { /* {{{ */
|
||||
if($this->_driver == 'pgsql')
|
||||
return $this->_conn->lastInsertId($tablename.'_'.$fieldname.'_seq');
|
||||
else
|
||||
if($this->_driver == 'pgsql') {
|
||||
return $this->_conn->lastInsertId('"'.$tablename.'_'.$fieldname.'_seq"');
|
||||
} else
|
||||
return $this->_conn->lastInsertId();
|
||||
} /* }}} */
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user