MDB2 ibase Reverse: strange case problem
| From: | Alessandro Pasotti | Date: | Wed, 02 May 2007 13:37:44 +0000 |
| Subject: | MDB2 ibase Reverse: strange case problem | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27176@lists.php.net to get a copy of this message | ||
Hi,
after switching from DB to MDB2 within DB_DataObject I run into this error:
Fatal error: Cannot use object of type MDB2_Error as array
in /usr/share/php/DB/DataObject/Generator.php on line 262
Digging in the code, I've tracked the error to MDB2/Driver/Reverse/ibase.php:
if (!$index['unique_flag'] && !$index['foreign_key']) {
return $db->raiseError(MDB2_ERROR_NOT_FOUND, null, null,
'it was not specified an existing table constraint',
__FUNCTION__);
}
The error is triggered by $index keys being uppercase while the check
for 'unique_flag' and 'foreign_key' is lower case, there are some instruction
to set $fields keys to lower case but no options to lower case the $index
too.
Is this a bug in ibase.php or something wrong with my setup?
--
Alessandro Pasotti
itOpen - "Open Solutions for the Net Age"
w3: www.itopen.it
Linux User# 167502