Project

General

Profile

Actions

Bug #17072

closed

DBAL/PostgreSQL: SQL parse error in "Who is online" BE list

Added by Mathias Behrle over 17 years ago. Updated over 14 years ago.

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

0%

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

Description

Working on svn rev 2168:
Administrator/User-List users online gives following error and blocks administrator interface:

DBAL fatal error: No handler found in handler_getFromTableList() for: "(be_sessions, be_users u) LEFT OUTER JOIN be_users bu ON (ses_backuserid=bu.uid)" (SQL engine parse ERROR: No table name found as expected in parseFromTables()!: near "(be_sessions, be_users u) LEFT OUTER JOIN be_users")

typo3-dev 4.1 (svn)
postgresql 8.1.4-6~bpo.1
apache2 2.0.54-5sarge1
php5 5.2.0-8~bpo.2
Firefox/Iceweasel/2.0.0.1
(issue imported from #M5120)


Files

5120.patch (949 Bytes) 5120.patch Administrator Admin, 2007-09-06 00:50

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #19073: "List users online" not DBAL compliant - Module crashesClosedErnesto Baschny2008-07-07

Actions
Actions #1

Updated by Karsten Dambekalns over 17 years ago

The problem has been reproduced by me, reason is the use of table aliases in this case. While this works to some extent, it breaks here. I fix is not yet available.

Actions #2

Updated by Dirk Werner over 17 years ago

Can also be reproduced using typo3 4.1.1 with MySQL as DB. Exactly the same error message as shown above:

DBAL fatal error: No handler found in handler_getFromTableList() for: "(be_sessions, be_users u) LEFT OUTER JOIN be_users bu ON (ses_backuserid=bu.uid)" (SQL engine parse ERROR: No table name found as expected in parseFromTables()!: near "(be_sessions, be_users u) LEFT OUTER JOIN be_users")

That means the summary should probably not contain postgresql cause it's obviously not a database related problem, rather sql related.

Actions #3

Updated by arpad muranyi over 17 years ago

Same happens to me when BE > User Admin > List Users Online
typo3 4.1.1 & mysql

DBAL fatal error: No handler found in handler_getFromTableList() for: "(be_sessions, be_users u) LEFT OUTER JOIN be_users bu ON (ses_backuserid=bu.uid)" (SQL engine parse ERROR: No table name found as expected in parseFromTables()!: near "(be_sessions, be_users u) LEFT OUTER JOIN be_users")

Actions #4

Updated by Stephan Lauterbach over 17 years ago

Same happens to me when BE > User Admin > List Users Online
typo3 4.1.1 & mysql

DBAL fatal error: No handler found in handler_getFromTableList() for: "(be_sessions, be_users u) LEFT OUTER JOIN be_users bu ON (ses_backuserid=bu.uid)" (SQL engine parse ERROR: No table name found as expected in parseFromTables()!: near "(be_sessions, be_users u) LEFT OUTER JOIN be_users")

Actions #5

Updated by Marc Bastian Heinrichs about 17 years ago

patch fixes the issue in be module for mysql

Actions #6

Updated by Mathis Klooss about 17 years ago

thanks, for the Patch it works fine...
--------------
i had this problem on:
openSuSE 10.1
php5.1.2
mysql 5.0.18
Typo3 4.1.0 & 4.1.2 & 4.1.3
AND
Debian Etch amd64
php5.2.4-1 (compiled)
MySQL 5.0.32-Debian_7etch1-log
Typo3 4.1.3

Actions #7

Updated by Martin Kutschker almost 17 years ago

The path removes the brackets around (be_sessions, be_users u). Does the patch work with them? There was a reason for them which I cannt recall right now.

Actions #8

Updated by Xavier Perseguers about 15 years ago

Could you please test whether patch for bug #21147 solves this issue too? If so, please close this bug and patch 12071.diff does not change the query itself but solves the SQL parser bug itself.

Actions #9

Updated by Xavier Perseguers about 15 years ago

Fixed with patch provided on bug #19073. Please acknowledge on Core list. Thanks.

Actions #10

Updated by Ernesto Baschny about 15 years ago

Commited to trunk, rev.6315 (4.3 beta3)

Actions

Also available in: Atom PDF