Skip to content

Commit 53e8c3c

Browse files
committed
Add SQL mode compat query to db import command
1 parent c274b57 commit 53e8c3c

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
@@ -651,6 +651,8 @@ public function import( $args, $assoc_args ) {
651651
? 'SOURCE %s;'
652652
: 'SET autocommit = 0; SET unique_checks = 0; SET foreign_key_checks = 0; SOURCE %s; COMMIT;';
653653

654+
$query = $this->get_sql_mode_query( $assoc_args ) . $query;
655+
654656
$mysql_args['execute'] = sprintf( $query, $result_file );
655657
} else {
656658
$result_file = 'STDIN';

0 commit comments

Comments
 (0)