projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
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
diff --git
a/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
b/lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
index
03a7134
..
8f1fd03
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
+++ b/
lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
@@
-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} ||=