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

   `CREATE TABLE t (a INT, INDEX idx (a) COMMENT 'foo''bar')` currently 
displays as:
   
   ```sql
   CREATE TABLE t (a INT, INDEX idx (a) COMMENT 'foo'bar')
   ```
   
   `IndexOption::Comment` formatted the raw string unescaped instead of calling 
`escape_single_quote_string` like `ColumnOption::Comment` and 
`TableOption::Comment`, breaking round-trip parsing.
   
   This PR formats `IndexOption::Comment` with `escape_single_quote_string` and 
adds MySQL/Generic unit tests plus a fuzz seed.
   
   Verified locally with `cargo test --all-features`, `cargo fmt --all -- 
--check`, and `cargo clippy --all-targets --all-features -- -D warnings`.
   
   AI assistance was used in discovering this round-trip failure and drafting 
the fix and tests; all changes were reviewed and verified locally.


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