in reply to Auto-Increment and DBD Agnosticism

Have you looked at last_insert_id in the DBI documentation? This is a generic implemenation of what you are already using, available since DBI v1.38.

C.

Replies are listed 'Best First'.
Re^2: Auto-Increment and DBD Agnosticism
by skyknight (Hermit) on Jun 22, 2004 at 19:25 UTC

    It's not clear to me how well supported that is. I have heard that it isn't yet a bullet proof way to go about things.

    Update: I just looked at the DBI that came installed on my installation, a Fedora Core 1 distro, and the DBI that comes installed on it is 1.37! :-( I am quite leery about relying on a version that even I don't have installed by default. I wonder how reasonable it is to stipulate that others upgrade their DBI to 1.38. *sigh*