We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94ba759 commit a3804a6Copy full SHA for a3804a6
src/Context/FeatureContext.php
@@ -1455,7 +1455,8 @@ public function install_wp( $subdir = '' ): void {
1455
if ( 'sqlite' !== self::$db_type ) {
1456
$mysqldump_binary = Utils\get_sql_dump_command();
1457
$mysqldump_binary = Utils\force_env_on_nix_systems( $mysqldump_binary );
1458
- $support_column_statistics = exec( "{$mysqldump_binary} --help | grep 'column-statistics'" );
+ $help_output = shell_exec( "{$mysqldump_binary} --help" );
1459
+ $support_column_statistics = false !== strpos( $help_output, 'column-statistics' );
1460
$command = "{$mysqldump_binary} --no-defaults --no-tablespaces";
1461
if ( $support_column_statistics ) {
1462
$command .= ' --skip-column-statistics';
0 commit comments