fixup for Oracle WHERE join stuff from abraxxa
Matt S Trout [Fri, 11 May 2007 12:38:18 +0000 (12:38 +0000)]
lib/DBIx/Class/Storage/DBI/Oracle/WhereJoins.pm

index 2ba6815..9dbe9e0 100644 (file)
@@ -58,10 +58,10 @@ BEGIN {
         die "Can't handle full outer joins in Oracle 8 yet!\n"
           if $to_jt->{-join_type} =~ /full/i;
 
-        $left_join  = q{(+)} if $to_jt->{-join_type} =~ /right/i
+        $left_join  = q{(+)} if $to_jt->{-join_type} =~ /left/i
                              && $to_jt->{-join_type} !~ /inner/i;
 
-        $right_join = q{(+)} if $to_jt->{-join_type} =~ /left/i
+        $right_join = q{(+)} if $to_jt->{-join_type} =~ /right/i
                              && $to_jt->{-join_type} !~ /inner/i;
       }