fix bug postgresql 8.3 : the restart sequence must be > 1
This commit is contained in:
parent
de6ae29988
commit
100b178a54
1 changed files with 1 additions and 1 deletions
|
|
@ -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");
|
||||
}
|
||||
/*!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue