? Success

User tests: Successful: Unsuccessful:

avatar gslitt91
gslitt91
16 Oct 2018

Import from database dump only imports first table .

Pull Request for Issue #22620.

Summary of Changes

On expression inside foreach

Testing Instructions

  1. Export structure dump for more then one table.
  2.  Merge from dump generated in step one .

Expected result

  it shall merge all tables .

Actual result

it only merges first table

Documentation Changes Required

avatar gslitt91 gslitt91 - open - 16 Oct 2018
avatar gslitt91 gslitt91 - change - 16 Oct 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Oct 2018
Category Libraries
avatar franz-wohlkoenig franz-wohlkoenig - change - 24 Apr 2019
The description was changed
avatar franz-wohlkoenig franz-wohlkoenig - edited - 24 Apr 2019
avatar richard67
richard67 - comment - 19 Aug 2019

@mbabker Shouldn't this change not be also made in the framework? It seems in the framework there is also a typo in the function name "getAlterTableql", but in the CMS (J3) there is not this typo. See here the framework: https://github.com/joomla-framework/database/blob/master/src/DatabaseImporter.php#L264

avatar mbabker
mbabker - comment - 19 Aug 2019

Every change here should eventually make it to the Framework package if the same issue exists in a similar block of code. That goes for all Framework packages, not just the database.

avatar richard67
richard67 - comment - 19 Aug 2019

@mbabker I don't dare to ask how it comes that it is different now regarding that typo I've mentioned.

avatar mbabker
mbabker - comment - 19 Aug 2019

Someone screwed up copy/pasting something, code that never had test coverage to detect the typo in the first place, someone mistyped it when creating it, who knows.

avatar richard67
richard67 - comment - 19 Aug 2019

Well, I will care and make PR's against framework db package sooner or later. The typo is already fixed there in 2.0-dev, the change from this PR neither in master nor in 2.0-dev.

avatar HLeithner
HLeithner - comment - 19 Aug 2019

thx richard for your help, I will merge this into core, please take care bringing this upstream as discussed on glip.

and many thx to @gslitt91 for creating this PR and make Joomla a bit database import friendly!

also a thank you to @mbabker for the helpful feedback.

avatar HLeithner HLeithner - change - 19 Aug 2019
Status Pending Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2019-08-19 15:22:53
Closed_By HLeithner
Labels Removed: J3 Issue
avatar HLeithner HLeithner - close - 19 Aug 2019
avatar HLeithner HLeithner - merge - 19 Aug 2019
avatar richard67
richard67 - comment - 19 Aug 2019

@HLeithner The correction from this PR and the typo I've mentioned in our Glip discussion have been merged now in the framework database package in both the master branch and the 2.0-dev branch. As soon as a composer update is made to the latest version of joomla/database, these changes are in 4.0-dev branch here. I've pinged Brian to update his PR #25840 for updating dependencies. If he will not do it, I will do a PR later after his PR has been merged. An update will fetch us also other recent changes e.g. for PHP 7.4 (array curly brackets).

avatar HLeithner
HLeithner - comment - 20 Aug 2019

Thanks Richard for managing this patch.

Add a Comment

Login with GitHub to post a comment