Set $interactive = true when output is STDOUT#198
Set $interactive = true when output is STDOUT#198aidvu wants to merge 3 commits intowp-cli:masterfrom
$interactive = true when output is STDOUT#198Conversation
Changes to run_mysql_command load command output into strings, which for DB export commands tends to OOM. Seems the old behavior is retained when $interactive = true for run_mysql_command. When we're outputting to STDOUT, interactive mode makes sense and fixes the problem with exports and piping.
$interactive = true when output is STDOUT$interactive = true when output is STDOUT
$interactive = true when output is STDOUT$interactive = true when output is STDOUT
|
I've been trying to wrap my head around this fix for a while now. I don't think this works as expected. When trying to export to STDOUT, having Also, when trying to export to STDOUT, you cannot have I'm wondering whether you've tested this and whether I am maybe misunderstanding something... |
This change is ONLY for
When
Made a manual |
|
@aidvu Thanks for the work on this, but I'm closing this unmerged in favor of wp-cli/wp-cli#5546. That one is pretty similar in terms of how it works, but fixes the issue in a more central way, without creating an exception for a single command. And thanks for the help on debugging the above PR! |
Changes to run_mysql_command made it load process output
into variables, which for
db exporttends to OOM and completely breaks piping.The old behavior is retained when
$interactive = truefor
run_mysql_command. When we're outputting to STDOUT, interactivemode makes sense as it defaults to
STDIN/STDOUTwhich in my opinionis the expected behavior.
Fixes #195