projects
/
dbsrgits/DBIx-Class.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Cleanup logic of _determine_driver - do not fire unless we have conninfo
[dbsrgits/DBIx-Class.git]
/
lib
/
DBIx
/
Class
/
ResultSource.pm
diff --git
a/lib/DBIx/Class/ResultSource.pm
b/lib/DBIx/Class/ResultSource.pm
index
151d2c8
..
f5d2112
100644
(file)
--- a/
lib/DBIx/Class/ResultSource.pm
+++ b/
lib/DBIx/Class/ResultSource.pm
@@
-1669,7
+1669,7
@@
our $UNRESOLVABLE_CONDITION = \ '1 = 0';
sub _resolve_condition {
my ($self, $cond, $as, $for, $rel_name) = @_;
- my $obj_rel = !!blessed $for;
+ my $obj_rel = defined blessed $for;
if (ref $cond eq 'CODE') {
my $relalias = $obj_rel ? 'me' : $as;