Project

General

Profile

Actions

Bug #29783

closed

getQuery: fields explicilty added on select <table>.* : Error: ambigious parameter uid

Added by Björn Pedersen over 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
Start date:
2011-10-11
Due date:
% Done:

100%

Estimated time:
(Total: 0.00 h)
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

tslib_content->getQuery add ui and pid to the selected fields if fields are set. It does not check, wether a tablename.* occurs.

That occurs e.g. using cal_ts_service to link seminars events to cal calenders. There the query needs to contain table.title as mytitle.

Solution: Check, if a * is part of the requested fields.


Subtasks 1 (0 open1 closed)

Task #30762: Add Unit tests for #29783Rejected2011-10-11

Actions

Related issues 3 (0 open3 closed)

Related to TYPO3 Core - Bug #17284: no content in workspace preview when using select.selectFieldsClosedBenni Mack2007-05-07

Actions
Related to TYPO3 Core - Bug #34152: stdWrap function numRows() fails in 4.6 due to wrong SELECT clauseClosedErnesto Baschny2012-02-21

Actions
Has duplicate TYPO3 Core - Bug #30486: Typoscript select join brokenClosed2011-09-30

Actions
Actions

Also available in: Atom PDF