File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5193,24 +5193,24 @@ impl fmt::Display for Statement {
51935193 server_type,
51945194 version,
51955195 fdw_name,
5196- options
5196+ options,
51975197 } => {
51985198 write ! (
51995199 f,
52005200 "CREATE SERVER {if_not_exists}{name} " ,
52015201 if_not_exists = if * if_not_exists { "IF NOT EXISTS " } else { "" } ,
52025202 ) ?;
5203-
5203+
52045204 if let Some ( st) = server_type {
52055205 write ! ( f, "TYPE {st} " ) ?;
52065206 }
5207-
5207+
52085208 if let Some ( v) = version {
52095209 write ! ( f, "VERSION {v} " ) ?;
52105210 }
5211-
5211+
52125212 write ! ( f, "FOREIGN DATA WRAPPER {fdw_name}" ) ?;
5213-
5213+
52145214 if let Some ( o) = options {
52155215 write ! ( f, " OPTIONS ({o})" , o = display_comma_separated( o) ) ?;
52165216 }
Original file line number Diff line number Diff line change @@ -4662,7 +4662,9 @@ 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) && dialect_of!(self is PostgreSqlDialect | GenericDialect) {
4665+ } else if self.parse_keyword(Keyword::SERVER)
4666+ && dialect_of!(self is PostgreSqlDialect | GenericDialect)
4667+ {
46664668 self.parse_pg_create_server()
46674669 } else {
46684670 self.expected("an object type after CREATE", self.peek_token())
You can’t perform that action at this time.
0 commit comments