Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support non-UTF-8 character in binary_data #1300

Open
pixelshot91 opened this issue Jun 3, 2024 · 1 comment
Open

Support non-UTF-8 character in binary_data #1300

pixelshot91 opened this issue Jun 3, 2024 · 1 comment

Comments

@pixelshot91
Copy link

Parser::try_from_sql and Parser::parse_sql both take a &str as input.
But str only allow for UTF-8 character
Is there any function to parse SQL statement from binary data (eg Vec<u8>) ?
Is there any plan to support it ?

@alamb
Copy link
Contributor

alamb commented Jul 13, 2024

I don't think we have any plans to support this as I don't know of any database that supports it

Perhaps you could use one of the binary string representations that escape binary data

Something like this in postgres

U&"d\0061t\+000061"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants