Project

General

Profile

Actions

Bug #17916

closed

Ext Manager doesn't work with dbal SVN 0.9.20

Added by Moreno Feltscher almost 17 years ago. Updated about 15 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2007-12-13
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

I'm using dbal SVN-version 0.9.20 (because of the CLOB-features) with Oracle 10g. The error only occurs in this version, with 0.9.9 all worked fine.

Fatal error: Call to a member function MetaType() on a non-object in *\typo3\sysext\dbal\class.ux_t3lib_db.php on line 1140
That's line 1140:
$str = $rs->MetaType($type, $max_length);

If found out, sometimes $rs is NULL, but I don't know why.. $rs is set like this:
$rs = $this->handlerInstance[$this->lastHandlerKey]->SelectLimit('SELECT * FROM '.$this->quoteFromTables($table),1);

So i produced a workaround:
$rs = $this->handlerInstance[$this->lastHandlerKey]->SelectLimit('SELECT * FROM '.$this->quoteFromTables($table),1);
if ($rs != NULL) $str = $rs->MetaType($type, $max_length);

Now this error occurs:
Fatal error: Call to a member function FetchRow() on a non-object in *\typo3\sysext\adodb\adodb\drivers\adodb-oci8.inc.php on line 348

Exactly the same problem (line 348):
if ($row = $rs->FetchRow())
$primary_key = $row1; //constraint_name

$rs is defined like this:
$rs = $this->Execute(sprintf("SELECT * FROM ALL_CONSTRAINTS WHERE UPPER='%s' AND CONSTRAINT_TYPE='P'",$table));

So, i also produced a workaround like this:
$rs = $this->Execute(sprintf("SELECT * FROM ALL_CONSTRAINTS WHERE UPPER='%s' AND CONSTRAINT_TYPE='P'",$table));
if (($rs != NULL)&&($row = $rs->FetchRow()))
$primary_key = $row1; //constraint_name

Now everything works fine, but I don't think thats a good solution for this.

It would be nice to know where $table comes from.. can anybody help me?

(issue imported from #M6946)

Actions

Also available in: Atom PDF