File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2808,8 +2808,9 @@ private function strip_sqlite_system_tables( $tables ) {
2808
2808
$ tables ,
2809
2809
function ( $ table ) {
2810
2810
/**
2811
- * By default, we assume the table name is in the result set.
2812
- * Otherwise, if a information_schema table uses a custom name
2811
+ * By default, we assume the table name is in the result set,
2812
+ * so we allow empty table names to pass through.
2813
+ * Otherwise, if an information_schema table uses a custom name
2813
2814
* for the name/table_name column, the table would be removed.
2814
2815
*/
2815
2816
$ table_name = '' ;
@@ -2821,7 +2822,7 @@ function ( $table ) {
2821
2822
} elseif ( isset ( $ table ['TABLE_NAME ' ] ) ) {
2822
2823
$ table_name = $ table ['TABLE_NAME ' ];
2823
2824
}
2824
- return ! array_key_exists ( $ table_name , $ this ->sqlite_system_tables );
2825
+ return '' === $ table_name || ! array_key_exists ( $ table_name , $ this ->sqlite_system_tables );
2825
2826
},
2826
2827
ARRAY_FILTER_USE_BOTH
2827
2828
)
You can’t perform that action at this time.
0 commit comments