cvs: pear /MDB2 MDB2.php

From: Date: Sat, 04 Sep 2004 22:44:21 +0000
Subject: cvs: pear /MDB2 MDB2.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-23636@lists.php.net to get a copy of this message
lsmith Sat Sep 4 18:44:21 2004 EDT Modified files: /pear/MDB2 MDB2.php Log: - use MDB2_ERROR_UNSUPPORTED instead of MDB2_ERROR_NOT_CAPABLE in common implementations http://cvs.php.net/diff.php/pear/MDB2/MDB2.php?r1=1.37&r2=1.38&ty=u Index: pear/MDB2/MDB2.php diff -u pear/MDB2/MDB2.php:1.37 pear/MDB2/MDB2.php:1.38 --- pear/MDB2/MDB2.php:1.37 Sat Sep 4 18:23:06 2004 +++ pear/MDB2/MDB2.php Sat Sep 4 18:44:21 2004 @@ -43,7 +43,7 @@ // | Author: Lukas Smith <smith@backendmedia.com> | // +----------------------------------------------------------------------+ // -// $Id: MDB2.php,v 1.37 2004/09/04 22:23:06 lsmith Exp $ +// $Id: MDB2.php,v 1.38 2004/09/04 22:44:21 lsmith Exp $ // /** @@ -1126,7 +1126,7 @@ */ function errorNative() { - return $this->raiseError(MDB2_ERROR_NOT_CAPABLE); + return $this->raiseError(MDB2_ERROR_UNSUPPORTED); } // }}} @@ -2169,7 +2169,7 @@ */ function nextID($seq_name, $ondemand = true) { - return $this->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null, + return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 'nextID: method not implemented'); } @@ -2203,12 +2203,12 @@ { $this->warnings[] = 'database does not support getting current sequence value, the sequence value was incremented'; - $this->expectError(MDB2_ERROR_NOT_CAPABLE); + $this->expectError(MDB2_ERROR_UNSUPPORTED); $id = $this->nextID($seq_name); - $this->popExpect(MDB2_ERROR_NOT_CAPABLE); + $this->popExpect(MDB2_ERROR_UNSUPPORTED); if (MDB2::isError($id)) { - if ($id->getCode() == MDB2_ERROR_NOT_CAPABLE) { - return $this->raiseError(MDB2_ERROR_NOT_CAPABLE, null, null, + if ($id->getCode() == MDB2_ERROR_UNSUPPORTED) { + return $this->raiseError(MDB2_ERROR_UNSUPPORTED, null, null, 'currID: getting current sequence value not supported'); } return $id;

« previous php.pear.cvs (#23636) next »