#18273Install new Extension with table in native, external database will fail
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)
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.