File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -4424,7 +4424,11 @@ impl fmt::Display for Statement {
44244424 db_name,
44254425 filter,
44264426 } => {
4427- write ! ( f, "SHOW {}VIEWS" , if * materialized { "MATERIALIZED " } else { "" } ) ?;
4427+ write ! (
4428+ f,
4429+ "SHOW {}VIEWS" ,
4430+ if * materialized { "MATERIALIZED " } else { "" }
4431+ ) ?;
44284432 if let Some ( show_clause) = show_clause {
44294433 write ! ( f, " {show_clause}" ) ?;
44304434 }
Original file line number Diff line number Diff line change @@ -9687,8 +9687,7 @@ impl<'a> Parser<'a> {
96879687 extended : bool ,
96889688 full : bool ,
96899689 ) -> Result < Statement , ParserError > {
9690- let ( clause, db_name) = match self . parse_one_of_keywords ( & [ Keyword :: FROM , Keyword :: IN ] )
9691- {
9690+ let ( clause, db_name) = match self . parse_one_of_keywords ( & [ Keyword :: FROM , Keyword :: IN ] ) {
96929691 Some ( Keyword :: FROM ) => ( Some ( ShowClause :: FROM ) , Some ( self . parse_identifier ( false ) ?) ) ,
96939692 Some ( Keyword :: IN ) => ( Some ( ShowClause :: IN ) , Some ( self . parse_identifier ( false ) ?) ) ,
96949693 _ => ( None , None ) ,
@@ -9704,8 +9703,7 @@ impl<'a> Parser<'a> {
97049703 }
97059704
97069705 fn parse_show_views ( & mut self , materialized : bool ) -> Result < Statement , ParserError > {
9707- let ( clause, db_name) = match self . parse_one_of_keywords ( & [ Keyword :: FROM , Keyword :: IN ] )
9708- {
9706+ let ( clause, db_name) = match self . parse_one_of_keywords ( & [ Keyword :: FROM , Keyword :: IN ] ) {
97099707 Some ( Keyword :: FROM ) => ( Some ( ShowClause :: FROM ) , Some ( self . parse_identifier ( false ) ?) ) ,
97109708 Some ( Keyword :: IN ) => ( Some ( ShowClause :: IN ) , Some ( self . parse_identifier ( false ) ?) ) ,
97119709 _ => ( None , None ) ,
Original file line number Diff line number Diff line change @@ -11398,4 +11398,4 @@ fn test_show_dbs_schemas_tables_views() {
1139811398 verified_stmt ( "SHOW MATERIALIZED VIEWS IN db1 'abc'" ) ;
1139911399 verified_stmt ( "SHOW MATERIALIZED VIEWS FROM db1" ) ;
1140011400 verified_stmt ( "SHOW MATERIALIZED VIEWS FROM db1 'abc'" ) ;
11401- }
11401+ }
You can’t perform that action at this time.
0 commit comments