Re: Re: PEAR DB abstraction layers

From: Date: Mon, 19 Apr 2004 15:33:31 +0000
Subject: Re: Re: PEAR DB abstraction layers
References: 1 2 3 4 5 6 7  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-28043@lists.php.net to get a copy of this message
On Mon Apr 19, 2004 at 05:1455PM +0200, Lukas Smith wrote: > Martin Jansen wrote: > >Without knowing the API of MDB, I suppose one can also set the fetch > >mode globally, no? If that's the case, passing a bunch of NULL values > >is no real problem. > > Hmm we might be misunderstanding eachother here. Of course MDB2 can set > the fetchmode just as DB can (as in $mdb2->setFetchmode()). But they > types are a different topic entirely. Those need to be set (or set to > null) on a per query basis obviously since the return columns will be > different on a per query basis too. Yeah, I know that. What I wanted to say is that users, who do not like passing null values to queryRow() just to set a fetch mode, can always set the fetch mode globally. This way they can use $mdb2->queryRow($query); instead of $mdb2->queryRow($query, null, MDB_FETCHMODE_FOO); because the fetch mode is already defined. -- - Martin Martin Jansen http://martinjansen.com/

« previous php.pear.dev (#28043) next »