From 9154ae1a3b897052b9731fab6350e701a2c1603b Mon Sep 17 00:00:00 2001 From: Torben Dannhauer Date: Fri, 4 Apr 2025 00:17:49 +0200 Subject: [PATCH] Update Postgresql/Schema.php, fix of custom sequence detection in case the serial sequence is not found but a custom sequence, the return value was not properly send as the key was named column --- lib/Horde/Db/Adapter/Postgresql/Schema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Horde/Db/Adapter/Postgresql/Schema.php b/lib/Horde/Db/Adapter/Postgresql/Schema.php index c8bda43..2fcd4ef 100644 --- a/lib/Horde/Db/Adapter/Postgresql/Schema.php +++ b/lib/Horde/Db/Adapter/Postgresql/Schema.php @@ -1129,7 +1129,7 @@ public function pkAndSequenceFor($table) if (!$result) { $sql = " - SELECT c.column_name, c.ordinal_position, + SELECT c.column_name as attname, c.ordinal_position, pg_get_serial_sequence(t.table_name, c.column_name) as relname FROM information_schema.key_column_usage AS c LEFT JOIN information_schema.table_constraints AS t