Bug #22081
closedORA-00920: invalid relational operator in module statistics
0%
Description
When using backend module statistics (modfunc2), an error is silently logged in DBAL debug log, if debug is activated. The module itself seems to work as expected though.
Invalid query that is logged is:
SELECT "uid", "title" FROM "pages" WHERE "pid" = 1 AND "doktype" IN (1,2,5,7) AND "deleted" = 0 AND 1
This "AND 1" fails as it should be written "AND 1=1" to be not only compatible with MySQL.
Problem is related to the perms_clause passed to t3lib_tsfeBeUserAuth (line 353, method extGetTreeList) which performs query:
$GLOBALS['TYPO3_DB']->exec_SELECTquery('uid,title', 'pages', 'pid=... AND ' . $perms_clause
This faulty $perms_clause argument comes from modfunc2...
(issue imported from #M13464)
Files
Updated by Xavier Perseguers almost 15 years ago
Committed to:
- Trunk (rev. 6887)
- 4-3 (rev. 6888)