Skip to content

Giving multiple same arguments to mysqldump (via wp db export) only forwards the latest #289

@astappiev

Description

@astappiev

Bug Report

Using the following example:

wp db export --ignore-table-data=database.wp_fc_campaign_emails --ignore-table-data=database.wp_fsmpt_email_logs --ignore-table-data=database.wp_fc_campaign_url_metrics export.sql

Only the value of --ignore-table-data=database.wp_fc_campaign_url_metrics is forwarded to mysqldump.

From the docs:

To specify more than one table to ignore, use the directive multiple times, once for each table. Each table must be specified with both database and table names. See also --no-data.

I expect the arguments are parsed, and duplicate keys are just overridden by each other, which is not expected in this scenario.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions