Refactor ConvertLangToSqlString and fix couple of bugs. Verify with unit tests.

This commit is contained in:
eelke 2026-10-18 15:58:13 +02:00
parent 5821c23439
commit 9ff0bada4e
3 changed files with 254 additions and 218 deletions

View file

@ -0,0 +1,6 @@
---
fixes:
- |
Pasting C++ wide and Unicode string literals (``L"..."``, ``U"..."``, ``u"..."`` and ``u8"..."``) into the query tool now converts them to their SQL contents instead of being rejected.
- |
``\U`` escapes for code points up to U+FFFF are no longer silently dropped when pasting string literals. Invalid ``\U`` code points (above U+10FFFF or in the surrogate range) now stop the conversion, keeping the SQL converted so far.