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

   PostgreSQL supports `XMLPARSE(CONTENT expr)` and `XMLPARSE(DOCUMENT expr)`, 
which cannot be represented as a plain function call because of the leading 
`CONTENT` or `DOCUMENT` mode keyword. This follows how the parser already 
models other keyword-syntax functions such as `EXTRACT(field FROM expr)`, 
adding an `XmlParse` expression with an `XmlParseMode` of `CONTENT` or 
`DOCUMENT`. It is parsed for dialects that return true from 
`supports_xml_expressions()`, namely PostgreSQL and Generic, and on every other 
dialect `xmlparse` keeps parsing as an ordinary function.
   
   Part of the work to support PostgreSQL XML functions (split from #2252, 
follows #2299 and #2368).
   


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