? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
28 Jul 2019

Pull Request for Issue
use standard SQL

Summary of Changes

rewrite query in standard SQL instead of mysql dialect

  • correct JOIN for syntax error at or near "WHERE"
  • ERROR: CASE types character varying and numeric cannot be matched

Testing Instructions

Install latest 4.0-dev and populate data with sample testing plugin
go on frontpage

Expected result

see articles even in postgresql

Actual result

errors with postgresql

avatar alikon alikon - open - 28 Jul 2019
avatar alikon alikon - change - 28 Jul 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Jul 2019
Category Front End com_content Plugins
avatar richard67
richard67 - comment - 28 Jul 2019

Testing instructions say “install latest staging” but I guess you mean “install latest 4.0-dev” since this PR is for 4.0-dev. If I am right, please correct.

avatar alikon
alikon - comment - 28 Jul 2019

yes latest 4.0

avatar richard67
richard67 - comment - 28 Jul 2019

Will test later in the afternoon CEST time.

avatar richard67 richard67 - change - 28 Jul 2019
The description was changed
avatar joomla-cms-bot joomla-cms-bot - edited - 28 Jul 2019
avatar joomla-cms-bot joomla-cms-bot - edited - 28 Jul 2019
avatar joomla-cms-bot joomla-cms-bot - edited - 28 Jul 2019
avatar richard67
richard67 - comment - 29 Jul 2019

@alikon If you find time, please fix the drone PCPCS errors.


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

avatar alikon alikon - change - 30 Jul 2019
Labels Added: ?
de99e70 30 Jul 2019 avatar alikon cs
avatar alikon
alikon - comment - 30 Jul 2019

@richard67 cs fixed..... when you have time...

avatar richard67
richard67 - comment - 30 Jul 2019

I have tested this item successfully on 356f56f

There are still errors with testing sample data on PostgreSQL, but they are not related to this PR, i.e. the errors are there with and without this PR:

  1. On MySQL, the article with title "Joomla! Testing" as 4 tags assigned, tags "2", "3", "4" and "5", but on PostgreSQL the same article has only 1 assigned, which is tag "2".
  2. When editing any article, a red popup alert "Error" is shown, telling only "An error has occurred.".
  3. When trying to save a new article, an SQL errors about null value for column with not null constraint is shown.

As I said, it seems not to be related to this PR.

I will make new issues for that, except @alikon tells me before that he wants to fix the one or other thing here in this PR, too.


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

avatar richard67
richard67 - comment - 30 Jul 2019

I have tested this item successfully on 356f56f

There are still errors with testing sample data on PostgreSQL, but they are not related to this PR, i.e. the errors are there with and without this PR:

  1. On MySQL, the article with title "Joomla! Testing" as 4 tags assigned, tags "2", "3", "4" and "5", but on PostgreSQL the same article has only 1 assigned, which is tag "2".
  2. When editing any article, a red popup alert "Error" is shown, telling only "An error has occurred.".
  3. When trying to save a new article, an SQL errors about null value for column with not null constraint is shown.

As I said, it seems not to be related to this PR.

I will make new issues for that, except @alikon tells me before that he wants to fix the one or other thing here in this PR, too.


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

avatar richard67 richard67 - test_item - 30 Jul 2019 - Tested successfully
avatar alikon
alikon - comment - 30 Jul 2019

@richard67 thanks for testing
it should be always better to have 1 pr for 1 issue as a main rule
so i will be happy if free time permits me, to make a pr for any issue postgresql related (even not) that you'll submit (you know my mantra is to close issues as many as possible ? )

avatar richard67
richard67 - comment - 30 Jul 2019

@alikon Could you check issue #25747 ? It seems to be related to SQL in testing sample data, too, so maybe this PR here would be the right place so fix that. Edit: No, I think meanwhile error is somewhere else, maybe in tags component.

avatar wilsonge wilsonge - change - 31 Jul 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-07-31 19:01:14
Closed_By wilsonge
avatar wilsonge wilsonge - close - 31 Jul 2019
avatar wilsonge wilsonge - merge - 31 Jul 2019
avatar wilsonge
wilsonge - comment - 31 Jul 2019

Thanks!

Add a Comment

Login with GitHub to post a comment