tech rant: mysql
Sep. 2nd, 2008 02:14 pmI would like to give a serious clue-by-four beating to whoever thought it was a good idea to implement last_insert_id() many versions before adding transactions to MySQL. In a transactional context, it's a possibly useful function, though I prefer specifying what I want the last ID from, a la PG's currval. Outside of one? Dangerously unreliable, a concept one or more of my predecessors completely failed to grasp.
[end rant]
[end rant]