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

   `SELECT interval(2) '1 day 01:23:45.6789'` rendered as `SELECT INTERVAL '1 
day 01:23:45.6789'`, and PostgreSQL rounds the value differently without the 
precision. This fixes the PostgreSQL case of #2763. The generic `INTERVAL (100) 
MINUTE` case in the same issue already round-trips on main.
   
   When the typed literal path sees `INTERVAL` with fields or a precision, it 
now builds a typed string with that `DataType::Interval`, rendered as 
`INTERVAL(2) '...'`.
   
   https://www.postgresql.org/docs/current/datatype-datetime.html


-- 
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: Keep the precis... LucaCappelletti94 (via GitHub) via github

Reply via email to