-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
could not parse "\\000x\\0ffyz" as type bytes: invalid bytea escape sequence #57367
Comments
Hello, I am Blathers. I am here to help you get the issue triaged. It looks like you have not filled out the issue in the format of any of our templates. To best assist you, we advise you to use one of these templates. I have CC'd a few people who may be able to assist you:
If we have not gotten back to your issue within a few business days, you can try the following:
🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is otan. |
thanks @mniewrzal. I think the small example you shared is actually encountering a different problem. The first error is "could not parse ... as type bytes: invalid bytea escape sequence (SQLSTATE 22025)" For the first one, could you provide a way to reproduce the problem? The second one I believe is partially because we treat strings like |
thank you for looking into this @rafiss I combined a full test case to reproduce the first issue
Let me know if I can help more. |
@mniewrzal Thank you for your help! I was able to identify the problem and created #58265 which will fix the bug |
That was quick, thank you! |
Describe the problem
I have a problem using
SUBSTRING
function on a column defined asBYTEA
. For some values in a column, the function fails with an error:I'm using
pgx
as a Go driver.To Reproduce
This snippet can be used to reproduce this error:
The same snippet works fine for Postgres.
Expected behavior
No error.
Environment:
Build Tag: v20.2.2
Build Time: 2020/11/25 14:45:44
Distribution: CCL
Platform: linux amd64 (x86_64-unknown-linux-gnu)
Go Version: go1.13.14
C Compiler: gcc 6.3.0
Build Commit ID: 92d9495
Build Type: release
The text was updated successfully, but these errors were encountered: