mirror of
https://github.com/dg/dibi.git
synced 2025-08-08 07:06:52 +02:00
PdoDriver::getInsertId() fixed
This commit is contained in:
committed by
David Grudl
parent
3930dafe3f
commit
73790f4321
@@ -132,7 +132,7 @@ class PdoDriver implements Dibi\Driver
|
|||||||
*/
|
*/
|
||||||
public function getInsertId(?string $sequence): ?int
|
public function getInsertId(?string $sequence): ?int
|
||||||
{
|
{
|
||||||
return Helpers::false2Null($this->connection->lastInsertId());
|
return Helpers::intVal($this->connection->lastInsertId($sequence));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user