Project

General

Profile

Actions

Bug #20137

closed

DBAL where clauses not handled correctly

Added by Mangan about 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2009-03-06
Due date:
% Done:

0%

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

Description

When you have something like

marks.CONTENT = CONTENT
marks.CONTENT.table = tt_content
marks.CONTENT.select {
pidInList = this
orderBy = sorting
where = colPos=0
andWhere = header <> ''
languageField = sys_language_uid
}

it works with MySQL but not with DBAL. I guess that the SQL parameters are not passed correctly. I don't get any syntax working.

DBAL keeps telling me

Warning: Invalid argument supplied for foreach() in /cms/typo3conf/ext/dbal/class.ux_t3lib_db.php on line 966

Any ideas how to use more complex SQL queries with dbal?

(issue imported from #M10620)


Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #17554: Problem with strings in INClosed2007-08-22

Actions
Actions

Also available in: Atom PDF