PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB » Bug #1666

nextId don't create sequence with postgresql and mysql database

Details

Submitted2004-06-17 11:21 UTC
Frompierre dot malvy at linac dot org
Assigneddanielc
StatusBogus
PackageDB
PHP Version4.3.4
OSLinux
Roadmaps(Not assigned)

Comments

[2004-06-17 11:21 UTC] pierre dot malvy at linac dot org

Description:
------------
nexId($seq_name) don't create sequence with postgresql and mysql

in pqsql.php v 1.26, line 482:
$result->getCode() == DB_ERROR_NOSUCHTABLE) {
Replace by:
$result->getCode() < 0 ) {

in mysql.php v 1.23, Ligne 532 :
$result->getCode() == DB_ERROR_NOSUCHTABLE

Replace by:

$result->getCode() < 0

[2004-06-17 12:03 UTC] pierre dot malvy at linac dot org

This error is also in the pear-db package 1.6.4
I just put the script version for a great research facility of the number of line ;)

[2004-06-17 15:08 UTC] pierre dot malvy at linac dot org

Sorry you're right.