Bug 6028 : MT3815: Quickfix for CSV export (9999 rows limitation)
authorMatthias Meusburger <matthias.meusburger@biblibre.com>
Wed, 6 Apr 2011 14:39:36 +0000 (16:39 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 16 Apr 2011 17:17:00 +0000 (13:17 -0400)
Signed-off-by: Stéphane Delaune <stephane.delaune@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 3a8be8d8e0619e248ee02a851a0f21497d3490a7)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
C4/Reports/Guided.pm

index 22ee977..1c730e2 100644 (file)
@@ -432,7 +432,7 @@ sub execute_query ($;$$$) {
         return;
     }
     $offset = 0    unless $offset;
-    $limit  = 9999 unless $limit;
+    $limit  = 999999 unless $limit;
     $debug and print STDERR "execute_query($sql, $offset, $limit)\n";
     if ($sql =~ /;?\W?(UPDATE|DELETE|DROP|INSERT|SHOW|CREATE)\W/i) {
         return (undef, {  sqlerr => $1} );