FaaPz / PDO

Just another PDO database library
MIT License
316 stars 103 forks source link

Fixing execute return for postgres #13

Closed jboilesen closed 8 years ago

jboilesen commented 8 years ago

"lastInsertId" doesn't work for postgresql databases so it should not be used.

jboilesen commented 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.

FaaPz commented 8 years ago

Thanks, I've just released v1.9.3 (28f5fab47172a4246072b60069dc065aa996441e) with your fix (slightly modified for backward compatibility) included. :smile: