Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I trace the src code to the Class::DBI, it is actually from the following method:
Does this limit the Class::DBI usage? For those DBD other than mysql, how should this be solved? Thanks in advance for any help.sub _auto_increment_value { my $self = shift; my $dbh = $self->db_Main; # the DBI will provide a standard attribute soon, meanwhile... my $id = $dbh->{mysql_insertid} # mysql || eval { $dbh->func('last_insert_rowid') }; # SQLite $self->_croak("Can't get last insert id") unless defined $id; return $id; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Class::DBI vs DBD::ODBC
by dbwiz (Curate) on Sep 23, 2003 at 13:00 UTC |