mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-06 05:59:15 +01:00
* PostgreSQL/Admin/Setup: backup stopped with SQL error
This commit is contained in:
parent
5c2d92d0f4
commit
281090320f
@ -849,7 +849,8 @@ class db_backup
|
|||||||
$num_rows = 0;
|
$num_rows = 0;
|
||||||
// querying only chunks for 10000 rows, to not run into memory limit on huge tables
|
// querying only chunks for 10000 rows, to not run into memory limit on huge tables
|
||||||
foreach($this->db->select($table, '*',
|
foreach($this->db->select($table, '*',
|
||||||
empty($pk) ? false : $pk.' > '.$max, // limit by maximum primary key already received
|
// limit by maximum primary key already received
|
||||||
|
empty($pk) || !$max ? false : $pk.' > '.$this->db->quote($max, $schema['fd'][$pk]['type']),
|
||||||
__LINE__, __FILE__,
|
__LINE__, __FILE__,
|
||||||
empty($pk) ? $total : 0, // if no primary limit by number of received rows
|
empty($pk) ? $total : 0, // if no primary limit by number of received rows
|
||||||
empty($pk) ? '' : 'ORDER BY '.$pk.' ASC', // order by primary key
|
empty($pk) ? '' : 'ORDER BY '.$pk.' ASC', // order by primary key
|
||||||
|
Loading…
Reference in New Issue
Block a user