Skip to content

Commit

Permalink
Stop reordering most mysql arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonpayton committed Feb 3, 2022
1 parent 9cddf6b commit b3f5c1d
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/DB_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -1618,11 +1618,12 @@ private static function run( $cmd, $assoc_args = [], $send_to_shell = true, $int
uksort(
$final_args,
static function ( $a, $b ) {
switch ( $b ) {
case 'force':
return -1;
default:
return 1;
if ( 'force' === $a ) {
return 1;
} else if ( 'force' === $b ) {
return -1;
} else {
return 0;
}
}
);
Expand Down

0 comments on commit b3f5c1d

Please sign in to comment.