X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fsqlmaker%2Fmsaccess.t;h=6d76f82fe8c8fe95c0a73c5d6c004a0e406ebe91;hb=eed5492fecb339252aaad11adb22651e5bd06d7b;hp=77e6cd4152eb71c716745f1ac7eb8e99af537f06;hpb=726c8f65ef37b47aad62e29a306f64528a00f65d;p=dbsrgits%2FDBIx-Class.git diff --git a/t/sqlmaker/msaccess.t b/t/sqlmaker/msaccess.t index 77e6cd4..6d76f82 100644 --- a/t/sqlmaker/msaccess.t +++ b/t/sqlmaker/msaccess.t @@ -5,7 +5,7 @@ use lib qw(t/lib); use DBICTest; use DBIC::SqlMakerTest; -use DBIx::Class::SQLMaker::ACCESS; +use DBIx::Class::SQLMaker::ACCESS (); my $sa = DBIx::Class::SQLMaker::ACCESS->new; @@ -36,7 +36,7 @@ is_same_sql_bind( { "track.cd" => "me.cdid" }, ], [ - { "-join_type" => "LEFT", artist => "artist" }, + { artist => "artist" }, { "artist.artistid" => "me.artist" }, ], ], @@ -46,8 +46,8 @@ is_same_sql_bind( ); is_same_sql_bind( $sql, \@bind, - 'SELECT track.title, cd.cdid, cd.artist, cd.title, cd.year, artist.artistid, artist.name FROM ((cd me LEFT JOIN track track ON track.cd = me.cdid) LEFT JOIN artist artist ON artist.artistid = me.artist)', [], - 'two-step join parenthesized' + 'SELECT track.title, cd.cdid, cd.artist, cd.title, cd.year, artist.artistid, artist.name FROM ((cd me LEFT JOIN track track ON track.cd = me.cdid) INNER JOIN artist artist ON artist.artistid = me.artist)', [], + 'two-step join parenthesized and inner join prepended with INNER' ); done_testing;