From 100b178a54f08a4edf9e7d5c97c20614c8bc885d Mon Sep 17 00:00:00 2001 From: Dany De Bontridder Date: Mon, 28 Sep 2009 20:08:01 +0000 Subject: [PATCH] fix bug postgresql 8.3 : the restart sequence must be > 1 --- include/postgres.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/postgres.php b/include/postgres.php index a2be55c38..e4faeaf8f 100644 --- a/include/postgres.php +++ b/include/postgres.php @@ -285,7 +285,7 @@ function Rollback($p_cn) { $Res=ExecSql($p_cn,"rollback"); } function AlterSequence($p_cn,$p_name,$p_value) { - + if ( $p_value <= 0 ) $p_value=1; $Res=ExecSql($p_cn,"alter sequence $p_name restart $p_value"); } /*!