- Posts: 5
- Thank you received: 0
When I add condition created_by = '@user_id' it work fine when showing data.
But when i searching with "All fields" condition (Just only "All fields" condition that issued wrong result)
Component showing incorrect data because OR
condition
This is MySQL Front end that I print.
SELECT id, created_by, title, hits FROM jos_content WHERE created_by = '62' AND UPPER(id) LIKE ('%0%') OR UPPER(created_by) LIKE ('%0%') OR UPPER(title) LIKE ('%0%') OR UPPER(hits) LIKE ('%0%') ORDER BY id asc LIMIT 0, 20
It's incorrect. The QUERY MUST HAVE bracket "( )" after Aditionnal Condition
The correct QUERY IS
SELECT id, created_by, title, hits FROM jos_content WHERE created_by = '62' AND (
UPPER(id) LIKE ('%0%') OR UPPER(created_by) LIKE ('%0%') OR UPPER(title) LIKE ('%0%') OR UPPER(hits) LIKE ('%0%') )
ORDER BY id asc LIMIT 0, 20
Im' try to fixs this .but Im' not find the place to add my bracket yet
Im' try to fixs this .but Im' not find the place to add my bracket yet
Please Log in or Create an account to join the conversation.
Hello Sospixs,
Thank you for reporting this bug. A new version of TableJX will be released today, having this bug fixed. New version will also include some additional features like linkable columns, etc...
Existing customers will be able to download this version for free in Customer area. You can expect it to be published within an hour.
Best regards,
Bostjan
Please Log in or Create an account to join the conversation.
WOW
Thanks for quickly response.
Im waiting for download.
Please Log in or Create an account to join the conversation.