renommage de PEAR en DOLIPEAR

This commit is contained in:
Regis Houssin
2007-08-17 09:16:19 +00:00
parent 1c5df696a7
commit cb9b95f26d
10 changed files with 36 additions and 36 deletions

View File

@@ -474,13 +474,13 @@ class DB_pgsql extends DB_common
$seqname = $this->getSequenceName($seq_name);
$repeat = false;
do {
$this->pushErrorHandling(PEAR_ERROR_RETURN);
$this->pushErrorHandling(DOLIPEAR_ERROR_RETURN);
$result = $this->query("SELECT NEXTVAL('${seqname}')");
$this->popErrorHandling();
if ($ondemand && DB::isError($result) &&
$result->getCode() == DB_ERROR_NOSUCHTABLE) {
$repeat = true;
$this->pushErrorHandling(PEAR_ERROR_RETURN);
$this->pushErrorHandling(DOLIPEAR_ERROR_RETURN);
$result = $this->createSequence($seq_name);
$this->popErrorHandling();
if (DB::isError($result)) {