mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-14 20:14:11 +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;
|
||||
// querying only chunks for 10000 rows, to not run into memory limit on huge tables
|
||||
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__,
|
||||
empty($pk) ? $total : 0, // if no primary limit by number of received rows
|
||||
empty($pk) ? '' : 'ORDER BY '.$pk.' ASC', // order by primary key
|
||||
|
Loading…
Reference in New Issue
Block a user