Use goto to preserve correct error-at-line reporting
Peter Rabbitson [Mon, 3 Aug 2009 15:24:41 +0000 (15:24 +0000)]
t/lib/DBIC/SqlMakerTest.pm

index 1098e25..44ccb4b 100644 (file)
@@ -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;