Home » Database » DB » Bug #8217
AutoPrepare returns false
Details
| Submitted | 2006-07-14 12:01 UTC |
|---|---|
| From | dobes at lnx dot cz |
| Assigned | aharvey |
| Status | Closed |
| Package | DB |
| PHP Version | 5.0.4 |
| OS | winXP |
| Roadmaps | (Not assigned) |
Comments
[2006-07-14 12:01 UTC] dobes at lnx dot cz
Description:
------------
When I try to use autoPrepare and AutoExecute, it returns false.
Test script:
---------------
include_once 'DB.php';
$dsn = 'ibase(firebird)://'.$user.':'.$passwd,;@localhost:/c:/path/to/DB.FDB?charset=ISO8859_2';
$db = & DB::connect($dsn, array('persistent' => false));
if (PEAR::isError($db)) {
die('0:'.$db->getMessage());
}
$db->setOption('autofree', true);
$db->setOption('portability', DB_PORTABILITY_RTRIM | DB_PORTABILITY_NUMROWS );
$db->autoCommit(false);
$sth = $db->autoPrepare('serialize_data', array('blob_data', 'row_id'), 1, false);
var_dump($sth);
Expected result:
----------------
resource or error object
Actual result:
--------------
bool(false)
[2006-07-14 12:39 UTC] dobes at lnx dot cz
Correct error is:
invalid request BLR at offset 59 function UDF_INCHOUR is not defined module name or entrypoint could not be found in C:\some\file.php5 on line 23
It's UDF problem, but DB is not creating any Error obj in this case.