cvs: pear /DB_DataObject DataObject.php

From: Date: Wed, 10 Dec 2003 03:06:48 +0000
Subject: cvs: pear /DB_DataObject DataObject.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-14751@lists.php.net to get a copy of this message
alan_k Tue Dec 9 22:06:48 2003 EDT Modified files: /pear/DB_DataObject DataObject.php Log: set oracle optimization for portibility Index: pear/DB_DataObject/DataObject.php diff -u pear/DB_DataObject/DataObject.php:1.160 pear/DB_DataObject/DataObject.php:1.161 --- pear/DB_DataObject/DataObject.php:1.160 Fri Dec 5 22:02:07 2003 +++ pear/DB_DataObject/DataObject.php Tue Dec 9 22:06:48 2003 @@ -20,7 +20,7 @@ * @package DB_DataObject * @category DB * - * $Id: DataObject.php,v 1.160 2003/12/06 03:02:07 alan_k Exp $ + * $Id: DataObject.php,v 1.161 2003/12/10 03:06:48 alan_k Exp $ */ /* ===================================================================================== @@ -1636,7 +1636,7 @@ } $_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5] = DB::connect($dsn); - + if (@$_DB_DATAOBJECT['CONFIG']['debug']) { $this->debug(serialize($_DB_DATAOBJECT['CONNECTIONS']), "CONNECT",5); } @@ -1651,6 +1651,18 @@ if (!$this->_database) { $this->_database = $_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5]->dsn["database"]; } + + // Oracle need to optimize for portibility - not sure exactly what this does though :) + $c = &$_DB_DATAOBJECT['CONNECTIONS'][$this->_database_dsn_md5]; + if ($c->phptype == 'oci8') { + $c->setOption('optimize','portability'); + + } + + + + + return true; }

« previous php.pear.cvs (#14751) next »