1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-12 00:54:11 +02:00

* added support for affectedRows in DibiPdoDriver

This commit is contained in:
David Grudl
2007-11-24 08:23:26 +00:00
parent c8fedf7692
commit a0febd3d50
7 changed files with 36 additions and 58 deletions

View File

@@ -291,7 +291,7 @@ class DibiConnection extends NObject
{
$id = $this->driver->insertId($sequence);
if ($id < 1) throw new DibiException('Cannot retrieve last generated ID');
return $id;
return (int) $id;
}