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"); } /*!