PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Database » DB » Bug #8918

portability layer does not work

Details

Submitted2006-10-09 14:29 UTC
FromJens dot Scheidtmann at bayerbbs dot com
Assigneddanielc
StatusBogus
PackageDB
PHP Version4.3.2
OSLinux RHEL 3
Roadmaps(Not assigned)

Comments

[2006-10-09 14:29 UTC] Jens dot Scheidtmann at bayerbbs dot com

Description:
------------
$options = array(
'debug' => 0,
'portability' => DB_PORTABILITY_ALL,
'persistent' => false,
);
$dbh = DB::connect($dsn, $options);

does not work (Unkown option portability), one instead has to use:

$dbh->setOption("portability", DB_PORTABILITY_ALL);

But then, using placeholders "?" in select statements result in "invalid characters in select statement" when run against an Oracle Database.

The same code works using DB-1.7.4.

Test script:
---------------
I will provide one later, if requested.

Expected result:
----------------
No error when using "?"-placeholders

Actual result:
--------------
ora-00911: invalid character