LWN.net Logo

PHP includes such "reasonable database layer"...

PHP includes such "reasonable database layer"...

Posted Dec 19, 2011 11:36 UTC (Mon) by alankila (subscriber, #47141)
In reply to: PHP includes such "reasonable database layer"... by khim
Parent article: Cracks in the Foundation (PHP Advent)

I agree that the requirement that *everything works afterwards* is probably too steep. But having to change a few selects to return the last insert id, or just use currval('foo_id_seq') in a few queries is the sort of price that seems acceptable. Much better, anyway, than using database-specific functions.


(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