There is a typo in the patch I submitted previously. It should be:

/usr/share/php/Horde/Db/Adapter/Postgresql/Schema.php

$sql = sprintf('SELECT setval(%s, (SELECT COALESCE(MAX(%s) + (SELECT increment_by FROM pg_sequences where schemaname= ANY (CURRENT_SCHEMAS(false)) and sequencename=%s), (SELECT min_value FROM pg_sequences where schemaname= ANY (CURRENT_SCHEMAS(false)) and sequencename=%s)) FROM %s), false)',
                               $quotedSequence,
                               $quotedPk,
                               $quotedSequence,
                               $quotedSequence,
                               $quotedTable);

sorry

--
Ivan Sergio Borgonovo
http://www.webthatworks.it http://www.borgonovo.net

Reply via email to