projects
/
dbsrgits/DBIx-Class-Historic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
cache rsrc properly in NoBindVars, return undef if no rsrc
[dbsrgits/DBIx-Class-Historic.git]
/
lib
/
DBIx
/
Class
/
Storage
/
DBI
/
NoBindVars.pm
diff --git
a/lib/DBIx/Class/Storage/DBI/NoBindVars.pm
b/lib/DBIx/Class/Storage/DBI/NoBindVars.pm
index
eac8295
..
3256846
100644
(file)
--- a/
lib/DBIx/Class/Storage/DBI/NoBindVars.pm
+++ b/
lib/DBIx/Class/Storage/DBI/NoBindVars.pm
@@
-62,7
+62,7
@@
sub _prep_for_execute {
my $rsrc = $alias2src->{$alias};
- my $datatype = $rsrc->column_info($col)->{data_type};
+ my $datatype = $rsrc && $rsrc->column_info($col)->{data_type};
foreach my $data (@$bound) {
if(ref $data) {