From: Peter Rabbitson Date: Mon, 3 Aug 2009 15:24:41 +0000 (+0000) Subject: Use goto to preserve correct error-at-line reporting X-Git-Tag: v0.08109~48^2~9 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2056ff22042ac47d06715c5f396eb6bf702c4a52;p=dbsrgits%2FDBIx-Class.git Use goto to preserve correct error-at-line reporting --- diff --git a/t/lib/DBIC/SqlMakerTest.pm b/t/lib/DBIC/SqlMakerTest.pm index 1098e25..44ccb4b 100644 --- a/t/lib/DBIC/SqlMakerTest.pm +++ b/t/lib/DBIC/SqlMakerTest.pm @@ -41,7 +41,8 @@ sub is_same_sql_bind { croak "Unexpected argument(s) supplied to is_same_sql_bind: " . join ('; ', @_) if @_; - SQL::Abstract::Test::is_same_sql_bind (@args); + @_ = @args; + goto &SQL::Abstract::Test::is_same_sql_bind; } *is_same_sql = \&SQL::Abstract::Test::is_same_sql;