@@ -2200,6 +2200,9 @@ private function execute_show_statement( WP_Parser_Node $node ): void {
22002200		$ keyword2$ tokens2 ] ?? null ;
22012201
22022202		switch  ( $ keyword1id  ) {
2203+ 			case  WP_MySQL_Lexer::COLLATION_SYMBOL :
2204+ 				$ this execute_show_collation_statement ();
2205+ 				return ;
22032206			case  WP_MySQL_Lexer::DATABASES_SYMBOL :
22042207				$ this execute_show_databases_statement ( $ node
22052208				return ;
@@ -2267,6 +2270,32 @@ private function execute_show_statement( WP_Parser_Node $node ): void {
22672270		);
22682271	}
22692272
2273+ 	/** 
2274+ 	 * Translate and execute a MySQL SHOW COLLATION statement in SQLite. 
2275+ 	 */ 
2276+ 	private  function  execute_show_collation_statement (): void  {
2277+ 		$ definition$ this information_schema_builder 
2278+ 			->get_computed_information_schema_table_definition ( 'collations '  );
2279+ 
2280+ 		// TODO: LIKE and WHERE clauses. 
2281+ 
2282+ 		$ result$ this execute_sqlite_query ( $ definitionfetchAll ( PDO ::FETCH_ASSOC  );
2283+ 
2284+ 		$ collationsarray ();
2285+ 		foreach  ( $ resultas  $ row
2286+ 			$ collationsobject ) array (
2287+ 				'Collation '      => $ row'COLLATION_NAME ' ],
2288+ 				'Charset '        => $ row'CHARACTER_SET_NAME ' ],
2289+ 				'Id '             => $ row'ID ' ],
2290+ 				'Default '        => $ row'IS_DEFAULT ' ],
2291+ 				'Compiled '       => $ row'IS_COMPILED ' ],
2292+ 				'Sortlen '        => $ row'SORTLEN ' ],
2293+ 				'Pad_attribute '  => $ row'PAD_ATTRIBUTE ' ],
2294+ 			);
2295+ 		}
2296+ 		$ this set_results_from_fetched_data ( $ collations
2297+ 	}
2298+ 
22702299	/** 
22712300	 * Translate and execute a MySQL SHOW DATABASES statement in SQLite. 
22722301	 * 
0 commit comments