X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FSQLite.pm;h=b771681f5b0b9dd27af4791f489ec72384ec6d5b;hb=45be2ce774dc5af71a60397db33bc952c22aa489;hp=7f03dcb66e5d5bad45362670742bf908ff1dde66;hpb=c0084472a2f4515cbbd3970773b7d52ff20bcc45;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm index 7f03dcb..b771681 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm @@ -50,13 +50,12 @@ sub rescan { } sub _extra_column_info { - my ($self, $table, $col_name, $sth, $col_num) = @_; - ($table, $col_name) = @{$table}{qw/TABLE_NAME COLUMN_NAME/} if ref $table; + my ($self, $table, $col_name, $info, $dbi_info) = @_; my %extra_info; my $dbh = $self->schema->storage->dbh; my $has_autoinc = eval { - my $get_seq = $self->{_cache}->{sqlite_sequence} + my $get_seq = $self->{_cache}{sqlite_sequence} ||= $dbh->prepare(q{SELECT count(*) FROM sqlite_sequence WHERE name = ?}); $get_seq->execute($table); my ($ret) = $get_seq->fetchrow_array;