From: Nicola S. <so...@us...> - 2004-03-12 01:31:20
|
Update of /cvsroot/phppgadmin/webdb/classes/database In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14089/classes/database Modified Files: Postgres.php Log Message: Explain login disallowed in FAQ. Add CACHE and CYCLE parameters in sequence creation. Italian translation fix. Index: Postgres.php =================================================================== RCS file: /cvsroot/phppgadmin/webdb/classes/database/Postgres.php,v retrieving revision 1.184 retrieving revision 1.185 diff -C2 -d -r1.184 -r1.185 *** Postgres.php 6 Mar 2004 11:30:00 -0000 1.184 --- Postgres.php 12 Mar 2004 01:12:09 -0000 1.185 *************** *** 1491,1497 **** * @param $maxvalue The max value * @param $startvalue The starting value * @return 0 success */ ! function createSequence($sequence, $increment, $minvalue, $maxvalue, $startvalue) { $this->fieldClean($sequence); $this->clean($increment); --- 1491,1499 ---- * @param $maxvalue The max value * @param $startvalue The starting value + * @param $cachevalue The cache value + * @param $cycledvalue True if cycled, false otherwise * @return 0 success */ ! function createSequence($sequence, $increment, $minvalue, $maxvalue, $startvalue, $cachevalue, $cycledvalue) { $this->fieldClean($sequence); $this->clean($increment); *************** *** 1499,1502 **** --- 1501,1505 ---- $this->clean($maxvalue); $this->clean($startvalue); + $this->clean($cachevalue); $sql = "CREATE SEQUENCE \"{$sequence}\""; *************** *** 1505,1508 **** --- 1508,1513 ---- if ($maxvalue != '') $sql .= " MAXVALUE {$maxvalue}"; if ($startvalue != '') $sql .= " START {$startvalue}"; + if ($cachevalue != '') $sql .= " CACHE {$cachevalue}"; + if ($cycledvalue) $sql .= " CYCLE"; return $this->execute($sql); |