Skip Menu |

This queue is for tickets about the DBIx-Simple CPAN distribution.

Report information
The Basics
Id: 79113
Status: new
Priority: 0/
Queue: DBIx-Simple

People
Owner: Nobody in particular
Requestors: blue [...] thisisnotmyrealemail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: last_insert_id fails
When calling last_insert_id I get this: DBI last_insert_id: invalid number of arguments: got handle + 0, expected handle + between 4 and 5 Usage: $h->last_insert_id($catalog, $schema, $table_name, $field_name [, \%attr ]) at /home/perls/p516/lib/site_perl/5.16.0/DBIx/Simple.pm line 201.
From: blue [...] thisisnotmyrealemail.com
On Tue Aug 21 10:39:16 2012, blue wrote: Show quoted text
> When calling last_insert_id I get this: > > DBI last_insert_id: invalid number of arguments: got handle + 0, > expected handle + between 4 and 5 > Usage: $h->last_insert_id($catalog, $schema, $table_name, $field_name [, > \%attr ]) at /home/perls/p516/lib/site_perl/5.16.0/DBIx/Simple.pm line
201. I managed to get it working using this workaround: $db->{dbh}->last_insert_id(undef, undef, undef, undef);