File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3324,7 +3324,7 @@ pub enum Statement {
33243324 if_not_exists : bool ,
33253325 server_type : Option < Ident > ,
33263326 version : Option < Ident > ,
3327- fdw_name : ObjectName ,
3327+ foreign_data_wrapper : ObjectName ,
33283328 options : Option < Vec < ServerOption > > ,
33293329 } ,
33303330 /// ```sql
@@ -5192,7 +5192,7 @@ impl fmt::Display for Statement {
51925192 if_not_exists,
51935193 server_type,
51945194 version,
5195- fdw_name ,
5195+ foreign_data_wrapper ,
51965196 options,
51975197 } => {
51985198 write ! (
@@ -5209,7 +5209,7 @@ impl fmt::Display for Statement {
52095209 write ! ( f, "VERSION {v} " ) ?;
52105210 }
52115211
5212- write ! ( f, "FOREIGN DATA WRAPPER {fdw_name }" ) ?;
5212+ write ! ( f, "FOREIGN DATA WRAPPER {foreign_data_wrapper }" ) ?;
52135213
52145214 if let Some ( o) = options {
52155215 write ! ( f, " OPTIONS ({o})" , o = display_comma_separated( o) ) ?;
Original file line number Diff line number Diff line change @@ -4662,8 +4662,7 @@ impl<'a> Parser<'a> {
46624662 self.parse_create_procedure(or_alter)
46634663 } else if self.parse_keyword(Keyword::CONNECTOR) {
46644664 self.parse_create_connector()
4665- } else if self.parse_keyword(Keyword::SERVER)
4666- {
4665+ } else if self.parse_keyword(Keyword::SERVER) {
46674666 self.parse_pg_create_server()
46684667 } else {
46694668 self.expected("an object type after CREATE", self.peek_token())
@@ -15833,7 +15832,7 @@ impl<'a> Parser<'a> {
1583315832 };
1583415833
1583515834 self.expect_keywords(&[Keyword::FOREIGN, Keyword::DATA, Keyword::WRAPPER])?;
15836- let fdw_name = self.parse_object_name(false)?;
15835+ let foreign_data_wrapper = self.parse_object_name(false)?;
1583715836
1583815837 let mut options = None;
1583915838 if self.parse_keyword(Keyword::OPTIONS) {
@@ -15851,7 +15850,7 @@ impl<'a> Parser<'a> {
1585115850 if_not_exists: ine,
1585215851 server_type,
1585315852 version,
15854- fdw_name ,
15853+ foreign_data_wrapper ,
1585515854 options,
1585615855 })
1585715856 }
Original file line number Diff line number Diff line change @@ -6241,7 +6241,7 @@ fn parse_create_server() {
62416241 if_not_exists: false ,
62426242 server_type: None ,
62436243 version: None ,
6244- fdw_name : ObjectName :: from( vec![ "postgres_fdw" . into( ) ] ) ,
6244+ foreign_data_wrapper : ObjectName :: from( vec![ "postgres_fdw" . into( ) ] ) ,
62456245 options: None ,
62466246 }
62476247 ) ;
@@ -6261,7 +6261,7 @@ fn parse_create_server() {
62616261 quote_style: Some ( '\'' ) ,
62626262 span: Span :: empty( ) ,
62636263 } ) ,
6264- fdw_name : ObjectName :: from( vec![ "postgres_fdw" . into( ) ] ) ,
6264+ foreign_data_wrapper : ObjectName :: from( vec![ "postgres_fdw" . into( ) ] ) ,
62656265 options: None ,
62666266 }
62676267 ) ;
@@ -6273,7 +6273,7 @@ fn parse_create_server() {
62736273 if_not_exists: false ,
62746274 server_type: None ,
62756275 version: None ,
6276- fdw_name : ObjectName :: from( vec![ "postgres_fdw" . into( ) ] ) ,
6276+ foreign_data_wrapper : ObjectName :: from( vec![ "postgres_fdw" . into( ) ] ) ,
62776277 options: Some ( vec![
62786278 ServerOption {
62796279 key: "host" . into( ) ,
You can’t perform that action at this time.
0 commit comments