Added tests and fix for lastInsertId() on camel case tables.
This commit is contained in:
parent
626e1fe038
commit
9fc73577ca
3 changed files with 27 additions and 15 deletions
|
|
@ -51,7 +51,7 @@ class Database extends \PDO
|
|||
public function lastInsertIdExtended($table = null)
|
||||
{
|
||||
if ($table && self::POSTGRESQL_TYPE === $this->getAttribute(self::ATTR_DRIVER_NAME)) {
|
||||
return parent::lastInsertId($table . '_id_seq');
|
||||
return parent::lastInsertId('"' . $table . '_id_seq"');
|
||||
}
|
||||
|
||||
return parent::lastInsertId();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue