devtechedge commented on issue #2609:
URL:
https://github.com/apache/datafusion-sqlparser-rs/issues/2609#issuecomment-6041961694
Hi @jvatic, I'd like to pick this up if it's in scope.
PostgreSQL documents it as `DO [ LANGUAGE lang_name ] code`, where the code
is a string literal, usually dollar-quoted.
My plan is a small `Statement::Do { language, code }` with a Display that
round-trips, parsed next to `LISTEN`/`NOTIFY` in `parse_statement`.
It would sit behind a new `supports_do_statement()` method on the `Dialect`
trait, enabled for PostgreSQL, rather than a `dialect_of!` check.
Tests would go in `tests/sqlparser_common.rs` with `all_dialects_where`,
covering the plain and `LANGUAGE` forms plus a non-string code error.
--
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]