? Success

User tests: Successful: Unsuccessful:

avatar alikon
alikon
10 Dec 2014

Steps to reproduce the issue

On administration side
go to User -> User Manager and click to sort for Last Visit Date or Registration Date column

Expected result

The user list is sorted by registration or visit date

Actual result

but it throws a Database Error
query failed (error # %s): %s SQL=SELECT a.* FROM "#_users" AS a ORDER BY a.registerDate ASC LIMIT 20

System information

Joomla! 3.4.0-alpha
Postgres 9.3.5
PHP 5.5.9

Additional comments

Postgres is a little bit different than mysql on mixed case columns name , so this is is only a temporary fix
should be better if all joomla fields became lowercase, the user table is the only table that have mixed case fields

Votes

# of Users Experiencing Issue
0/1
Average Importance Score
3.00

avatar alikon alikon - open - 10 Dec 2014
avatar jissues-bot jissues-bot - change - 10 Dec 2014
Labels Added: ?
avatar brianteeman brianteeman - change - 10 Dec 2014
Category Postgresql
avatar waader
waader - comment - 11 Dec 2014

Your patch resolves the database error but the sorting in the user manager is impacted in a negativ way - tested with postgres and mysql.

This is the sorting order without your patch (ordered by registration date):
j34_before_5385

And with the patch applied:
j34_after_5385

Also note that the arrow indicating the sorting direction disappeared.

avatar alikon
alikon - comment - 11 Dec 2014

Shame on me I've tested with 1 user only. I'll review it the


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

avatar alikon
alikon - comment - 11 Dec 2014

i was doing the correct thing
quote the field name with mixed case (ie."registerDate")
in the wrong place and in the wrong way
now should work on both

avatar alikon alikon - close - 11 Dec 2014
avatar alikon alikon - change - 11 Dec 2014
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2014-12-11 19:27:42
avatar alikon alikon - reopen - 11 Dec 2014
avatar alikon alikon - change - 11 Dec 2014
Status Closed New
avatar waader
waader - comment - 11 Dec 2014

@test works!

Thanks @alikon! Works with mysql, postgresql, mssql.

avatar alikon
alikon - comment - 15 Dec 2014

closed for #5436 that include anothe fix reported by @waader in #5405

avatar alikon alikon - close - 15 Dec 2014
avatar alikon alikon - change - 15 Dec 2014
The description was changed
Status New Closed
Closed_Date 2014-12-11 19:27:42 2014-12-15 20:10:12

Add a Comment

Login with GitHub to post a comment