Skip to content

Commit 25756d3

Browse files
committed
Replace '-' with 'STDIN' for STDIN input
1 parent 0cce781 commit 25756d3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/DB_Command.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,8 @@ public function import( $args, $assoc_args ) {
580580
: 'SET autocommit = 0; SET unique_checks = 0; SET foreign_key_checks = 0; SOURCE %s; COMMIT;';
581581

582582
$mysql_args['execute'] = sprintf( $query, $result_file );
583+
} else {
584+
$result_file = 'STDIN';
583585
}
584586
// Check if any mysql option pass.
585587
$mysql_args = array_merge( $mysql_args, self::get_mysql_args( $assoc_args ) );

0 commit comments

Comments
 (0)