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 Cormack <chrisc@catalyst.net.nz>
Thu, 7 Apr 2011 03:12:48 +0000 (15:12 +1200)
Signed-off-by: Stéphane Delaune <stephane.delaune@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>

C4/Reports/Guided.pm

index 7231457..0da7c13 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} );