Project

General

Profile

Actions

Bug #18273

closed

Install new Extension with table in native, external database will fail

Added by Paints about 16 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2008-02-21
Due date:
% Done:

100%

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

Description

Installing a new extension with a new table in an external, native database will fail.
The new table is always created in the _DEFAULT database.

In my opinion this bug is located in line 1919 and 1921 of class.ux_t3lib_db.php.
In this line the default link is used $this->link:
if($this->lastParsedAndMappedQueryArray['type']=='INSERT') {
return mysql_query($compiledQuery, $this->link);
}
return mysql_query($compiledQuery0, $this->link);
break;

But it should be the link of the handlerInstance:
if($this->lastParsedAndMappedQueryArray['type']=='INSERT') {
return mysql_query($compiledQuery, $this->handlerInstance[$this->lastHandlerKey]['link']);
}
return mysql_query($compiledQuery0, $this->handlerInstance[$this->lastHandlerKey]['link']);
break;

(issue imported from #M7615)


Files

18273.diff (773 Bytes) 18273.diff Patch for the changes proposed by Paints Oliver Klee, 2011-04-13 15:25

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #28563: Incorrect handler detected with DELETE, INSERT and UPDATE queriesClosed2011-07-29

Actions
Actions

Also available in: Atom PDF