Skip to content

Conversation

@richard67
Copy link
Member

@richard67 richard67 commented Aug 17, 2021

Pull Request for Issue # .

Summary of Changes

Fix the SQL update statement from PR #35164 for certain older MySQL or MariaDB versions.

Use (almost) the same changes also for PostgreSQL because it's better SQL.

CROSS JOIN is supported on MySQL 5.6. so it is ok for Joomla 4.

On PostgreSQL it is supported too, but not in UPDATE statements, it seems, therefore the slightly different syntax for PostgreSQL.

Testing Instructions

  1. Update from 3.10 to 4.0 using a new package which includes the merged PR Handle com_search migration to a core supported extension #35164 .
    You can build a package with following command:
    php ./build/build.php --remote=HEAD --exclude-gzip --exclude-bzip2
    Result: See section "Actual result BEFORE applying this Pull Request" below.

  2. Do the same again but use the update package built by drone for this PR.
    Result: See section "Expected result AFTER applying this Pull Request" below.

Actual result BEFORE applying this Pull Request

On certain older MySQL (5.7 in my case) or MariaDB versions:

2021-08-17_j4-update-sql-error

On newer versions of MySQL or MariaDB and on PostgreSQL there is no such error.

Expected result AFTER applying this Pull Request

No such SQL error on any supported database version.

Documentation Changes Required

None.

@richard67
Copy link
Member Author

System tests are broken due to merged PR #35168 in the 40-dev branch.

@HLeithner
Copy link
Member

Working for version 5.6.40-84.0

@zero-24
Copy link
Contributor

zero-24 commented Aug 17, 2021

Works ok on 10.4.13-MariaDB

@richard67 richard67 changed the title [WiP] Use cross join and combine update statements for package_id Combine update statements for package_id of search extensions Aug 17, 2021
@richard67 richard67 marked this pull request as ready for review August 17, 2021 10:42
@HLeithner HLeithner merged commit 95b187b into joomla:4.0-dev Aug 17, 2021
@zero-24 zero-24 added this to the Joomla 4.0 milestone Aug 17, 2021
@HLeithner
Copy link
Member

Thanks @richard67 and @zero-24

@richard67 richard67 deleted the 4.0-dev-fix-sql-error-1093-on-update-from-3.10 branch August 17, 2021 10:44
@zero-24
Copy link
Contributor

zero-24 commented Aug 17, 2021

Thanks @richard67

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants