Fix SQLite _extra_column_info for new DBD::SQLite which ->can('column_info')
[dbsrgits/DBIx-Class-Schema-Loader.git] / lib / DBIx / Class / Schema / Loader / DBI / SQLite.pm
index 03a7134..8f1fd03 100644 (file)
@@ -148,6 +148,7 @@ sub _sqlite_parse_table {
 
 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 %extra_info;
 
     $self->{_sqlite_parse_data}->{$table} ||=