mirror of
https://github.com/dg/dibi.git
synced 2025-08-07 14:46:50 +02:00
PostgreDriver::getInsertId() Ensuring that an integer is returned, if postgres returned a string (#271)
This commit is contained in:
@@ -199,7 +199,7 @@ class PostgreDriver implements Dibi\Driver, Dibi\ResultDriver, Dibi\Reflector
|
|||||||
}
|
}
|
||||||
|
|
||||||
$row = $res->fetch(false);
|
$row = $res->fetch(false);
|
||||||
return is_array($row) ? $row[0] : null;
|
return is_array($row) ? (int) $row[0] : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user