From 0936f642d558d2866d675d0120f047ad02ecbb1f Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 11 Aug 2017 08:11:20 +0200 Subject: [PATCH] Bug 19061: [QA Follow-up] Wrong interpolation Interpolating "$object->method" does not work. Unable to execute query [Object class]=HASH(0x3c21cc8)->method. Signed-off-by: Marcel de Rooy Signed-off-by: Jonathan Druart --- reports/cash_register_stats.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reports/cash_register_stats.pl b/reports/cash_register_stats.pl index 9ce0dcaa4d..158625dc7a 100755 --- a/reports/cash_register_stats.pl +++ b/reports/cash_register_stats.pl @@ -106,8 +106,8 @@ if ($do_it) { $whereBranchCode ORDER BY al.date "; - my $sth_stats = $dbh->prepare($query) or die "Unable to prepare query $dbh->errstr"; - $sth_stats->execute($fromDate, $toDate, @extra_params) or die "Unable to execute query $sth_stats->errstr"; + my $sth_stats = $dbh->prepare($query) or die "Unable to prepare query " . $dbh->errstr; + $sth_stats->execute($fromDate, $toDate, @extra_params) or die "Unable to execute query " . $sth_stats->errstr; my @loopresult; my $grantotal = 0; -- 2.39.5