[imp] Oracle and array keys

Jon Parise jon@horde.org
Sun, 20 Jan 2002 13:43:57 -0500


On Sun, Jan 20, 2002 at 12:17:13PM -0500, liamr@umich.edu wrote:

> This seems to work w/ PHP 4.11 and the version of PEAR from CVS.
> 
> Liam
> 
> --- sql.php.orig        Sun Jan 20 12:14:13 2002
> +++ sql.php     Sun Jan 20 12:12:51 2002
> @@ -97,8 +97,11 @@ class Prefs_sql extends Prefs {
>  
>              /* Connect to the SQL server using the supplied parameters. */
>              include_once 'DB.php';
>              $this->db = &DB::connect($this->params, true);
> +           if ( $this->params['phptype'] == 'oci8' ) {
> +               $this->db->setOption('optimize', 'portability');
> +           }
>              if (DB::isError($this->db) || DB::isWarning($this->db)) {
>                  Horde::fatal($this->db, __FILE__, __LINE__);
>              }
 
Great, I just committed a slightly different version to Horde
CVS.  I'll merge it back to IMP 3.1-cvs in a week.

-- 
Jon Parise (jon@csh.rit.edu)  .  Information Technology (2001)
http://www.csh.rit.edu/~jon/  :  Computer Science House Member