Home » Database » DB » Bug #8918
portability layer does not work
Details
| Submitted | 2006-10-09 14:29 UTC |
|---|---|
| From | Jens dot Scheidtmann at bayerbbs dot com |
| Assigned | danielc |
| Status | Bogus |
| Package | DB |
| PHP Version | 4.3.2 |
| OS | Linux 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