sabir-akhadov-localstack commented on code in PR #2845:
URL: 
https://github.com/apache/datafusion-sqlparser-rs/pull/2845#discussion_r4669536423


##########
src/parser/mod.rs:
##########
@@ -12508,9 +12508,15 @@ impl<'a> Parser<'a> {
             }
         } else if self.parse_keyword(Keyword::SET) {
             AlterDatabaseOperation::Set(self.parse_configuration_set()?)
+        } else if self.parse_keyword(Keyword::RESET) {
+            AlterDatabaseOperation::Reset(if self.parse_keyword(Keyword::ALL) {
+                ResetConfig::ALL
+            } else {
+                ResetConfig::ConfigName(self.parse_object_name(false)?)

Review Comment:
   Non-blocking: the multi-word forms that `SET` handles here are rejected on 
the `RESET` side, e.g. `ALTER DATABASE d RESET TIME ZONE` and `... RESET 
SESSION AUTHORIZATION` (both accepted by PG 16). Plain `RESET` and `ALTER ROLE 
... RESET` have the same gap, so it could be a follow-up.



-- 
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]

Reply via email to