Re: insert error: object id#

From: Date: Tue, 13 Sep 2005 23:08:01 +0000
Subject: Re: insert error: object id#
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20952@lists.php.net to get a copy of this message
surf wrote:
Hi all, hope somebody of you can help me with a problem I have a long time. I working with a System (developed by my antecessor) that now moved to a php5 server. It use different pear modules, like db, forms and DB_DataObject. After the move I had a lot of problems, because the system was not compatable with php5. After some package updates its now working, safe one problem. One Insert is not working. The system create a new ID (autoincrement) with a database-select. This works, Im able to print the ID (for example with echo $this->user_id) and it also works fine with other inserts. But in the final Insert is written: "... VALUES ( Object id #163 , ..." this is really bad, because in this position should be the right ID. The only error message is: Notice: Object of class DB_Error to string conversion in xxxx\pear\DB\DataObject.php on line 950 But I dont know what to do with this. I hope somebody can help me or have a good idea? Thank you surf
Seems as though some resource handle is being substituted in your SQL rather than an actual value. You might need to add another line of code to get what you want now (maybe you have different versions of your supporting libraries now, who knows).. Maybe making example code that reproduces the error could be helpful to you and this list. -- Jeff Loiselle Developer, Musician, & Observer http://jeff.loiselles.com

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