Skip to content

Commit af13adb

Browse files
committed
NumericEval: fix typo on error handling
Sandy_Bio_Perl figured out a bug while using DBD::CSV which has been proven by Tux (Merjin) as a real bug in SQL::Statement. http://www.perlmonks.org/?node_id=1167381 Thanks to both! Signed-off-by: Jens Rehsack <sno@netbsd.org>
1 parent a503418 commit af13adb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SQL/Statement/Function.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ sub value($)
223223
map { _INSTANCE( $_, 'SQL::Statement::Term' ) ? $_->value($eval) : $_ } @{ $self->{PARAMS} };
224224
foreach my $val (@vals)
225225
{
226-
return $self->do_err(qq~Bad numeric expression '$val'!~)
226+
return $owner->do_err(qq~Bad numeric expression '$val'!~)
227227
unless ( defined( _NUMBER($val) ) );
228228
}
229229
$expr =~ s/\?(\d+)\?/$vals[$1]/g;

0 commit comments

Comments
 (0)