LP 1768715: Fix bug in pingest.pl after --pipe option was added.
authorJason Stephenson <jstephenson@mvlcstaff.org>
Fri, 1 Apr 2016 14:00:20 +0000 (10:00 -0400)
committerJason Stephenson <jason@sigio.com>
Sun, 3 Jun 2018 00:14:55 +0000 (20:14 -0400)
Apparently, the results of DBI->selectall_arrayref need to be cast to
an array and not just returned as a list.

Signed-off-by: Jason Stephenson <jstephenson@mvlcstaff.org>
Open-ILS/src/support-scripts/pingest.pl

index 898dc13..73efaab 100755 (executable)
@@ -152,7 +152,7 @@ if ($opt_pipe) {
         }
     }
 } else {
-    @input = ($dbh->selectall_arrayref($q));
+    @input = @{$dbh->selectall_arrayref($q)};
 }
 
 foreach my $r (@input) {