File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1626,6 +1626,7 @@ pub struct TableAliasColumnDef {
16261626}
16271627
16281628impl TableAliasColumnDef {
1629+ /// Create a new table alias column definition with only a name and no type
16291630 pub fn from_column_name ( name : & str ) -> Self {
16301631 TableAliasColumnDef {
16311632 name : Ident :: new ( name) ,
Original file line number Diff line number Diff line change @@ -8607,10 +8607,8 @@ impl<'a> Parser<'a> {
86078607 }
86088608 }
86098609
8610- /// Parse a parenthesized comma-separated list of unqualified, possibly quoted identifiers
8611- pub fn parse_table_alias_column_defs(
8612- &mut self,
8613- ) -> Result<Vec<TableAliasColumnDef>, ParserError> {
8610+ /// Parse a parenthesized comma-separated list of table alias column definitions.
8611+ fn parse_table_alias_column_defs(&mut self) -> Result<Vec<TableAliasColumnDef>, ParserError> {
86148612 if self.consume_token(&Token::LParen) {
86158613 let cols = self.parse_comma_separated(|p| {
86168614 let name = p.parse_identifier(false)?;
Original file line number Diff line number Diff line change @@ -5581,7 +5581,7 @@ fn parse_table_function() {
55815581}
55825582
55835583#[ test]
5584- fn parse_table_valued_function_with_alias_and_column_defs ( ) {
5584+ fn parse_select_with_alias_and_column_defs ( ) {
55855585 let sql = r#"SELECT * FROM jsonb_to_record('{"a": "x", "b": 2}'::JSONB) AS x (a TEXT, b INT)"# ;
55865586 let select = verified_only_select ( sql) ;
55875587
You can’t perform that action at this time.
0 commit comments