Project

General

Profile

Actions

Bug #17916

closed

Ext Manager doesn't work with dbal SVN 0.9.20

Added by Moreno Feltscher over 16 years ago. Updated over 14 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 #1

Updated by Moreno Feltscher over 16 years ago

This error occurs if you open an extension to edit its settings in the manager.

Actions #2

Updated by Xavier Perseguers over 14 years ago

I cannot reproduce this bug with my (little) TYPO3 website with Core trunk and DBAL trunk.

Actions #3

Updated by Oliver Hader over 14 years ago

Well, the reason that $rs is NULL is, that this term does not deliver anything:
$rs = $this->handlerInstance[$this->lastHandlerKey]->SelectLimit('SELECT * FROM '.$this->quoteFromTables($table),1);

Maybe there's something wrong with your configuration...

Actions #4

Updated by Moreno Feltscher over 14 years ago

I'm also unable to reproduce this bug at this time. I think, it can be closed.

Actions #5

Updated by Xavier Perseguers over 14 years ago

Original reporter cannot reproduce this bug anymore, nor did I.

Actions

Also available in: Atom PDF