mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-13 21:21:27 +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
|
* @return integer id used in last autoincrement
|
||||||
*/
|
*/
|
||||||
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();
|
||||||
} /* }}} */
|
} /* }}} */
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user