File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2808,8 +2808,9 @@ private function strip_sqlite_system_tables( $tables ) {
28082808 $ tables ,
28092809 function ( $ table ) {
28102810 /**
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
28132814 * for the name/table_name column, the table would be removed.
28142815 */
28152816 $ table_name = '' ;
@@ -2821,7 +2822,7 @@ function ( $table ) {
28212822 } elseif ( isset ( $ table ['TABLE_NAME ' ] ) ) {
28222823 $ table_name = $ table ['TABLE_NAME ' ];
28232824 }
2824- return ! array_key_exists ( $ table_name , $ this ->sqlite_system_tables );
2825+ return '' === $ table_name || ! array_key_exists ( $ table_name , $ this ->sqlite_system_tables );
28252826 },
28262827 ARRAY_FILTER_USE_BOTH
28272828 )
You can’t perform that action at this time.
0 commit comments