Re: DB_ibase request

From: Date: Thu, 07 Feb 2002 00:46:47 +0000
Subject: Re: DB_ibase request
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-4453@lists.php.net to get a copy of this message
Ludovico Magnocavallo wrote: > > It may be something that has already been discussed on this list (as you > know I'm pretty new to PEAR), but I have a feature request for the ibase DB > driver. > > Interbase returns field names as uppercase strings, and I have found this to > be a problem when I retrieve associative arrays in my code from DB, and then > have to migrate the same code to a different database, where field names are > usually lowercase (at least in mysql). > > Would it be possible to convert field names in the ibase driver to lowercase > (hmm I know, it would break compatibility with existent code), or at least > provide an option to force it to do so? What do you all think? > Yeah, there is no problem. We use that already for the oci driver. I'll comit a patch for it to allow your to test it. Well, wait a minute... ok, done. To use it, just connect to the dabase with: $db = DB::connect('ibase://..', array('optimize' => 'portability'); Tomas V.V.Cox PS.- Lutz Brueckner, nice adition to the ibase driver, thanks!

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