@@ -345,8 +345,7 @@ public function adjustPrivilegesMoveDb($oldDb, $newname): void
345345 $ this ->dbi ->query ($ query_proc_specific );
346346
347347 // Finally FLUSH the new privileges
348- $ flush_query = 'FLUSH PRIVILEGES; ' ;
349- $ this ->dbi ->query ($ flush_query );
348+ $ this ->dbi ->tryQuery ('FLUSH PRIVILEGES; ' );
350349 }
351350
352351 /**
@@ -442,8 +441,7 @@ public function adjustPrivilegesCopyDb($oldDb, $newname): void
442441 }
443442
444443 // Finally FLUSH the new privileges
445- $ flush_query = 'FLUSH PRIVILEGES; ' ;
446- $ this ->dbi ->query ($ flush_query );
444+ $ this ->dbi ->tryQuery ('FLUSH PRIVILEGES; ' );
447445 }
448446
449447 /**
@@ -816,8 +814,7 @@ public function adjustPrivilegesRenameOrMoveTable($oldDb, $oldTable, $newDb, $ne
816814 $ this ->dbi ->query ($ query_col_specific );
817815
818816 // Finally FLUSH the new privileges
819- $ flush_query = 'FLUSH PRIVILEGES; ' ;
820- $ this ->dbi ->query ($ flush_query );
817+ $ this ->dbi ->tryQuery ('FLUSH PRIVILEGES; ' );
821818 }
822819
823820 /**
@@ -871,8 +868,7 @@ public function adjustPrivilegesCopyTable($oldDb, $oldTable, $newDb, $newTable):
871868 }
872869
873870 // Finally FLUSH the new privileges
874- $ flush_query = 'FLUSH PRIVILEGES; ' ;
875- $ this ->dbi ->query ($ flush_query );
871+ $ this ->dbi ->tryQuery ('FLUSH PRIVILEGES; ' );
876872 }
877873
878874 /**
0 commit comments