Re: [Fwd: Re: [PEAR] DataObject tweak ok with DB and MDB2]
| From: | Justin Patrin | Date: | Thu, 07 Apr 2005 00:12:37 +0000 |
| Subject: | Re: [Fwd: Re: [PEAR] DataObject tweak ok with DB and MDB2] | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18566@lists.php.net to get a copy of this message | ||
On Apr 6, 2005 5:01 PM, Dan Rossi <pear@electroteque.org> wrote:
>
> On 07/04/2005, at 9:47 AM, Justin Patrin wrote:
> >>
> >>
> >
> > Well, this is the way that DB_DO works. You're doing the above in your
> > *calling* script before you use DB_DO, right?
>
> Noway, it proves the config setting for a db driver pointless if we
> also have to set it outside the dbdo ?
I'm not sure you're understanding me here. You do that setting in the
same place you do the DB_DO config setting, hopefully in the same ini
file.
Then DB_DO pulls the options and passes them in (if they exist) to the
DB connect function.
>
> I tried to see if setting the db_options after including the class
> worked but no still the same unknown config option database
>
> database is the dsn used for dataobject, it looks like it spits an
> error if there are unknown options for db_options therefore u cant use
> the same options as dataobject, man this is pure pain , is there a way
> to setup a nested array that will WORK without breaking anything ?
>
> so your array should look like
>
> DB_DataObject
> ...
> ..
> . ....... MDB2 or DB nested array for db options here
> ........
> >>
> >
> > Well, perhaps you're setting up the array wrong. This should work I
> > think...
> >
>
> Nope
>
--
Justin Patrin