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

Aperta
#289 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
45/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
mariadb, mysql, php
Ambito
cli, databases

Direzione di ricerca

Start at the wp db export command and inspect how repeated --ignore-table-data arguments are parsed before being passed to mysqldump. Reproduce the documented command with two values, then verify that both table arguments are forwarded and that existing export behavior remains intact.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug command:db-export

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.

Lingua principale
PHP
Stelle
76
Fork
73
Merge medio
9h 31m
PR unite (30g)
2

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di wp-cli/db-command

Tutte le issue di wp-cli/db-command

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.