sabir-akhadov-localstack commented on code in PR #2847:
URL:
https://github.com/apache/datafusion-sqlparser-rs/pull/2847#discussion_r4676357647
##########
src/parser/mod.rs:
##########
@@ -12507,7 +12507,13 @@ impl<'a> Parser<'a> {
new_name: self.parse_identifier()?,
}
} else if self.parse_keyword(Keyword::SET) {
- AlterDatabaseOperation::Set(self.parse_configuration_set()?)
+ if self.parse_special_set_keyword(Keyword::TABLESPACE) {
Review Comment:
`ALTER DATABASE d SET tablespace.foo = 1` (a custom GUC, accepted by PG 16
and by the previous PR in the stack) now fails with `Expected: identifier,
found: .`. Treating a following `.` as a parameter name in
`parse_special_set_keyword` would also cover `SET schema.foo = 1`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]