Re: My DB_DataObject subclasses are always returning 1 on insert()

From: Date: Wed, 19 May 2004 05:59:21 +0000
Subject: Re: My DB_DataObject subclasses are always returning 1 on insert()
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-12591@lists.php.net to get a copy of this message
try turning debugging on.. - DB_DataObject::debugLevel(1); it could be that either a) mysql_last_insertid (or what ever it was) - is returning the wrong number b) the generator didnt work out that the table has a autoincrement key. Regards Alan Mike Zornek wrote:
I'm trying to debug an issue with all of my DataObject classes where they are returning 1 for every insert. I'm on Mac OS X 10.3.3 with PHP 4.3.4 / MySQL 4.0.18-standard / on a dual 1.8 G5. Installed packages: ===================
Package        Version State
Archive_Tar    1.1     stable
Console_Getopt 1.0     stable
DB             1.6.2   stable
DB_DataObject 1.5.3 stable
Date           1.4.2   stable
HTML_Common    1.2.1   stable
HTML_QuickForm 3.2.2 stable
HTTP           1.2.1   stable
Mail           1.1.1   stable
Net_SMTP       1.2.3   stable
Net_Socket     1.0.1   stable
PEAR           1.3b3   beta
PHPUnit        0.6.2   stable
Validate       0.4.1   alpha
XML_Parser     1.0.1   stable
XML_RPC        1.0.4   stable
According to the docs I should be getting the mysql_next_id value: http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.i nsert.php Any troubleshooting recommendations? ~ Mike
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

« previous php.pear.general (#12591) next »