Re: [CDBI] DBI's last_insert_id and Class::DBI's _auto_increment_value

[prev] [thread] [next] [Date index for 2005/11/21]

From: Bill Moseley
Subject: Re: [CDBI] DBI's last_insert_id and Class::DBI's _auto_increment_value
Date: 13:48 on 21 Nov 2005
On Mon, Nov 21, 2005 at 08:37:59AM -0500, David Steinbrunner wrote:
> In the process of the getting Postgres working I ran into "Can't get last
> insert id".  I immediately did a Google search for last_insert_id and
> Class::DBI since I have used last_insert_id in a past database agnostic
> system.  I came upon the following:

Do you have your sequences defined?  I have this in my class:

    DB::Person->table( 'person' );
    DB::Person->columns( Primary => qw / id / );
    DB::Person->sequence( 'public.person_id_seq' );





        -- 
        Bill Moseley
moseley@xxxx.xxx


_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

Re: [CDBI] DBI's last_insert_id and Class::DBI's _auto_increment_value
Bill Moseley 13:48 on 21 Nov 2005

Generated at 19:11 on 22 Dec 2005 by mariachi v0.52