Re: DB_DataObject ::insert() problem
| From: | Alan Knowles | Date: | Thu, 01 Jan 2004 01:54:56 +0000 |
| Subject: | Re: DB_DataObject ::insert() problem | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9894@lists.php.net to get a copy of this message | ||
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