From: Dagfinn Ilmari Mannsåker Date: Fri, 29 Nov 2013 00:11:33 +0000 (+0000) Subject: Fix join type override in MySQL test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=39712b481c0a6608be07b6ac1c6f59c86be08673;p=dbsrgits%2FDBIx-Class.git Fix join type override in MySQL test --- diff --git a/t/71mysql.t b/t/71mysql.t index 1e31e8c..5af59cb 100644 --- a/t/71mysql.t +++ b/t/71mysql.t @@ -200,7 +200,8 @@ lives_ok { $cd->set_producers ([ $producer ]) } 'set_relationship doesnt die'; }, 'join does not throw (mysql 3 test)'; # induce a jointype override, make sure it works even if we don't have mysql3 - local $schema->storage->sql_maker->{_default_jointype} = 'inner'; + my $needs_inner_join = $schema->storage->sql_maker->needs_inner_join; + $schema->storage->sql_maker->needs_inner_join(1); is_same_sql_bind ( $rs->as_query, '( @@ -212,6 +213,7 @@ lives_ok { $cd->set_producers ([ $producer ]) } 'set_relationship doesnt die'; [], 'overridden default join type works', ); + $schema->storage->sql_maker->needs_inner_join($needs_inner_join); } ## Can we properly deal with the null search problem?