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

   ## What changed
   
   Escape single quotes when formatting `Value::NationalStringLiteral`.
   
   ## Why
   
   `Value::SingleQuotedString` already escapes embedded single quotes before 
display, but `Value::NationalStringLiteral` wrote its payload directly as 
`N'{v}'`. That made valid SQL such as `N'Tu geres '';'' et ''"'' ?'` round-trip 
to invalid SQL.
   
   ## Validation
   
   - `cargo test parse_literal_string`
   - `cargo fmt --all -- --check`
   - `cargo test --test sqlparser_common`
   - `cargo test`
   - `cargo clippy --all-targets --all-features -- -D warnings`
   


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