RE: [PEAR] Re: PGSQL, DataObject and insert
| From: | Theodore Mills | Date: | Mon, 12 Apr 2004 12:31:33 +0000 |
| Subject: | RE: [PEAR] Re: PGSQL, DataObject and insert | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-11786@lists.php.net to get a copy of this message | ||
Actually I'm not using the generator and have opted for manually creating my data objects.
I did figure out how to get my objects working by overriding the sequenceKey function in my extended DataObject class:
function sequenceKey() {
return array($keyname = $this -> keys[0], $use_native = true, $sequence_name = $this -> seqname);
}
In my object, seqname gets set in the constructor. I'm not sure if the generated ini file would have solved my problem or not, but I can try it when I have some spare time and let you know.
Thanks for your help.
From: Alan Knowles <alan@akbkhome.com> To: Theodore Mills <theomills@hotmail.com>, pear-general@lists.php.net Subject: [PEAR] Re: PGSQL, DataObject and insert Date: Mon, 12 Apr 2004 18:52:14 +0800 Can you try CVS - it may have been fixed there.. - otherwise it's probably an issue of the generator not guessing the correct primary key.. - what does the ini file look like for that specific table.. Regards Alan Theodore Mills wrote:_________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.aspI'm having problems getting the insert function to return or even set the primary key (INT) on one of my DataObjects. I haven't problems with MySQL. Has anyone encountered this with PostGres before? _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963-- 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