Closed jboilesen closed 8 years ago
Just correcting myself, PdoStatement lastInsertId works for postgresql, but it needs to receive the id column name or sequence name in order to return the last inserted id.
Thanks, I've just released v1.9.3 (28f5fab47172a4246072b60069dc065aa996441e) with your fix (slightly modified for backward compatibility) included. :smile:
"lastInsertId" doesn't work for postgresql databases so it should not be used.