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

   SQLite reads [`0x1F` and `0X1F` as the integer 
31](https://sqlite.org/lang_expr.html#hexint), so `SELECT a FROM t GROUP BY 
0x1` groups by the first column. `SQLiteDialect` tokenized `0x1F` as the blob 
`X'1F'` instead and rejected `0X1F` with `Expected: end of statement, found: 
X1F`.
   
   In #2758 I put hexadecimal, octal and binary integer literals behind one 
flag, `supports_non_decimal_integer_literals`, but SQLite only has the 
hexadecimal prefix, and `0o1` or `0b1` are `unrecognized token` there. I have 
now split the flag into `supports_hex_integer_literals`, 
`supports_octal_integer_literals` and `supports_binary_integer_literals`.


-- 
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] SQLite: Parse hexadecimal i... LucaCappelletti94 (via GitHub) via github

Reply via email to