LucaCappelletti94 opened a new pull request, #3056:
URL: https://github.com/apache/datafusion-sqlparser-rs/pull/3056

   `ALTER ROLE app SET search_path = api, public` fails with `Expected: end of 
statement, found: ,` because `AlterRoleOperation::Set` holds one expression. 
PostgreSQL takes a list of values there, [as `SET` itself 
does](https://www.postgresql.org/docs/current/sql-alterrole.html), and a role's 
`search_path` usually names two or more schemas.
   
   PostgreSQL parses `ALTER ROLE ... SET` and `ALTER DATABASE ... SET` with the 
same clause, so this builds on #2843 and stores the setting as its 
`ConfigurationSet`. That also brings `SET TIME ZONE` and the other special 
forms to `ALTER ROLE`. `SetConfigValue` goes away, and the statement now prints 
`=` where it printed `TO`.
   
   Plus, this is a nice cleanup.


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

  • [PR] PostgreSQL: Support value l... LucaCappelletti94 (via GitHub) via github

Reply via email to