Re: [Fwd: Re: [PEAR] DataObject tweak ok with DB and MDB2]

From: Date: Wed, 06 Apr 2005 20:42:05 +0000
Subject: Re: [Fwd: Re: [PEAR] DataObject tweak ok with DB and MDB2]
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18554@lists.php.net to get a copy of this message
On 07/04/2005, at 2:31 AM, Justin Patrin wrote:
Well...I think the thing you think did nothing actually did something. $db_options = PEAR::getStaticProperty($driver,'options'); This gets the options set for the driver. So to set these for DB you do the same kind of thing you're already doing for DB_DO. $config =& PEAR::getStaticProperty('DB', 'options'); $config = array('someOption' => 'someValue', 'etc' => 'etc'); And then you start using DB_DO and it should pull the options for DB. You should be able to do the same for MDB2 as DB_DO will still pull the options. Uncomment that line again and switch to using it unstead of the config array in the DB_DO global.
Crap that could be an issue then, cant we dynamically set that up within the DB_DO ? I have the getstatic property setup within my class which is then calling the db_Do's , I dont think we should have to set it outside really.
I've submitted patched to DB_DO before and if we get this working properly I would think that Alan wouldn't mind a patch to get this working.
Ok i am sending through my changes today !


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