Skip to content

Commit

Permalink
subtle bug fixed: when a type is supplied with a trailing colon (like…
Browse files Browse the repository at this point in the history
… "repeat:") the Pg adaptor checked whether the $source that resulted was defined (which it was) not whether it was true. As a result, the wrong sql would get generated.
  • Loading branch information
scottcain committed Apr 11, 2011
1 parent 3a73b74 commit e6c5916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bio/DB/SeqFeature/Store/DBI/Pg.pm
Expand Up @@ -691,7 +691,7 @@ sub _types_sql {
($primary_tag,$source_tag) = split ':',$type,2;
}

if (defined $source_tag) {
if ($source_tag) {
push @matches,"lower(tl.tag)=lower(?)";
push @args,"$primary_tag:$source_tag";
} else {
Expand Down

0 comments on commit e6c5916

Please sign in to comment.