|
Re: DataObject: Ignoring key definitions: msg#00352php.pear.general
have a read through http://cvs.php.net/diff.php/pear/DB_DataObject/DataObject.php?r1=1.153&r2=1.154&ty=u basically - to override the default guessed autoincrement, you need to override the sequenceKey() method : eg. dont use sequence keys at all.. function sequenceKey() { return (false,false); } use DB's sequence keys (eg. $db->nextval()) function sequenceKey() { return ('id',false); } use native autoincrement or nextvals() function sequenceKey() { return ('id',true); } Regards Alan Alan Knowles wrote: I will look at this in the next few days - the whole sequence/key code is very complex and needs desperatly simplifying... -- Can you help out? Need Consulting Services or Know of a Job? http://www.akbkhome.com -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Installing the log package: 00352, Shane White |
|---|---|
| Next by Date: | Re: Installing the log package: 00352, Stefan Neufeind |
| Previous by Thread: | Re: DataObject: Ignoring key definitionsi: 00352, Alan Knowles |
| Next by Thread: | Re: DataObject: Ignoring key definitions: 00352, Markus Wolff |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |