LWN.net Logo

Yup

Yup

Posted Dec 20, 2011 7:38 UTC (Tue) by niner (subscriber, #26151)
In reply to: Yup by khim
Parent article: Cracks in the Foundation (PHP Advent)

"It must only be used with MySQL, really. If you want to use Oracle and Postgresql then it's much better to use sequences and their “nextval” and “currval” directly."

Not really. It covers the simple case quite well which is the vast majority in our applications. If I want to use PostgreSQL features, I'd use returning to get the new ID back to the application without an additional roundtrip.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds