Re: oci8 pear::db != connect
| From: | Tomas V.V.Cox | Date: | Wed, 22 May 2002 12:58:59 +0000 |
| Subject: | Re: oci8 pear::db != connect | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6328@lists.php.net to get a copy of this message | ||
Hi Roko,
Thanks for reporting this. It's fixed in CVS.
Tomas V.V.Cox
Roko Roic wrote:
>
> Hi,
>
> I am having trouble connecting to Oracle 8 with PEAR::DB 1.2
>
> This is my connection string (real pwd hidden):
> ---------------------
> db_conn_str
>
> 'oci8://SHOOTOUT:******@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.101.161)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TIS)))'
> -----------------------------------------
>
> This is a print_r dump of parsed DSN:
> ------------------------------------------
> Array ( [phptype] => oci8 [dbsyntax] => oci8 [username] => SHOOTOUT
> [password] => ****** [protocol] => (DESCRIPTION= [hostspec] => [port] =>
> [socket] => [database] =>
> (HOST=192.168.101.161)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=TIS))) )
> ------------------------------------------
>
> I believe there is something wrong with DB::parseDSN()
>
> Should protocol be set to '(DESCRIPTION=' ?
>
> Cheers
> Roko
>
> --
> PEAR Development Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php