Re: DB_DataObject ::insert() problem

From: Date: Fri, 02 Jan 2004 11:07:20 +0000
Subject: Re: DB_DataObject ::insert() problem
References: 1 2  Groups: php.pear.general php.pear.general 
Request: Send a blank email to pear-general+get-9904@lists.php.net to get a copy of this message
Please try CVS - there was a bug in 1.4 with inserts that should be fixed now. Regards Alan Alan Knowles wrote:
What database are you using? - the generated {databasename}.ini file should have a section [{table}__keys] in this, the key should be listed. - if not, you may need to implement a sequenceKeys() method, to return an array('key_name',false) - false = use PEAR:DB's sequences - true = use database native default autoincrement/nextval Regards Alan Jason Lee wrote:
I'm trying to insert a new row using ::insert(), but the insert fails, because the object is not inserting anything into the PK fields. How do I make it use the primary key fields and values in the SQL the object sends to the DBMS? Thanks..
-- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com

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