Project

General

Profile

Actions

Bug #17232

closed

Fieldmapping doenst work on the "right side" in where clause.

Added by Nikolas Hagelstein almost 17 years ago. Updated almost 16 years ago.

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

0%

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

Description

SELECT a,b FROM myTbl WHERE a=b

results in:
SELECT a1,b1 FROM myTbl WHERE a1=b

having the following:
$TYPO3_CONF_VARS['EXTCONF']['dbal']['mapping'] = array (
'tmyTbl' => array (
'mapFieldNames' => array (
'a' => 'a1',
'b' => 'b1',
)
)
)

(issue imported from #M5481)


Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #16779: Templavoila & ORACLE wont work (DBAL 0.9.9)ClosedXavier Perseguers2006-12-12

Actions
Related to TYPO3 Core - Bug #17341: Fieldmapping doesnt work on the "right side" in where clause with table.fieldClosedKarsten Dambekalns2007-05-30

Actions
Is duplicate of TYPO3 Core - Bug #17224: Mapping problem in content element selectboxesClosedKarsten Dambekalns2007-04-20

Actions
Actions #1

Updated by Sebastian Fischer almost 17 years ago

Hello Nikolas,

that generalises the problem a little bit more. My report 0005465 indicates the same problem. But i didnt checked all possibilities, so my version wasnt so clear like yours.

Thanks for bringing this in.

Actions #2

Updated by Karsten Dambekalns almost 17 years ago

I added a fix for this to the SVN version, please give it a try. It will also map the right side of a comparison, if
- the value is a string
- and not quoted
- and present in the mapping configuration.

The field on the right side of the comparison will not be quoted, unless it is written in the form of table.field, that is an different problem.

@Ingo: Yes, a typo. I meant 4638.

Actions

Also available in: Atom PDF