?
avatar olleharstedt
olleharstedt
6 Jul 2017

Steps to reproduce the issue

Don't know. It's the query in asset table check(): https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/table/asset.php#L110

The result is always null for a specific page load. I'm logging the query:

query = "\nSELECT 1\nFROM `#__assets`\nWHERE `id` = 1"

If I run it in our database, the result is 1. If I change SELECT 1 to SELECT COUNT(*), the query works.

Expected result

1

Actual result

null

System information (as much as possible)

Additional comments

I copied this exact query into a CLI test file, but was not able to reproduce the problem.

avatar olleharstedt olleharstedt - open - 6 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 6 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Jul 2017
avatar olleharstedt olleharstedt - change - 6 Jul 2017
The description was changed
avatar olleharstedt olleharstedt - edited - 6 Jul 2017
avatar olleharstedt
olleharstedt - comment - 6 Jul 2017

Changing the query to ->select('1 AS x') makes it work.

avatar olleharstedt olleharstedt - change - 6 Jul 2017
Title
"SELECT 1" return null
"SELECT 1" returns null
avatar olleharstedt olleharstedt - edited - 6 Jul 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 6 Jul 2017
Category SQL
avatar csthomas
csthomas - comment - 7 Jul 2017

In short this is Falang issue.

See: #14319 (comment)

avatar joomla-cms-bot joomla-cms-bot - change - 7 Jul 2017
Closed_Date 2017-07-07 09:56:11 2017-07-07 09:56:12
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 7 Jul 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Jul 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-07-07 09:56:11
Closed_By franz-wohlkoenig
avatar joomla-cms-bot
joomla-cms-bot - comment - 7 Jul 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 7 Jul 2017

closed as no Core Issue.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/17000.

Add a Comment

Login with GitHub to post a comment