From 2a1c5f2443c197039df4749ee7dc466e02358d63 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 9 Aug 2016 09:31:36 +0200 Subject: [PATCH] * PostgreSQL/Setup: fix SQL error in Backup or update: Invalid SQL: SELECT * FROM egw_pm_members ADOdb drive for PostgreSQL requires 2. parameter for RowLock, while MySQL(i) defaults to all rows --- api/src/Db/Backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Db/Backup.php b/api/src/Db/Backup.php index 1267ce9f54..a93d8cac4f 100644 --- a/api/src/Db/Backup.php +++ b/api/src/Db/Backup.php @@ -943,7 +943,7 @@ class Backup if ($lock_table || empty($pk) && is_null($lock_table)) { - $this->db->Link_ID->RowLock($table); + $this->db->Link_ID->RowLock($table, 'true'); // PostgreSQL drive from ADOdb requires 2. param $where! } $total = $max = 0; do {