Bug 6028 : MT3815: Quickfix for CSV export (9999 rows limitation)

Signed-off-by: Stéphane Delaune <stephane.delaune@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Matthias Meusburger 2011-04-06 16:39:36 +02:00 committed by Chris Cormack
parent 332e701c25
commit 3a8be8d8e0

View 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} );