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

ShardingSphere-Proxy MySQL replied incorrect binary flags in column definition #22322

Open
TeslaCN opened this issue Nov 22, 2022 · 2 comments
Open

Comments

@TeslaCN
Copy link
Member

TeslaCN commented Nov 22, 2022

Bug Report

Which version of ShardingSphere did you use?

947c8c4

Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?

ShardingSphere-Proxy MySQL

Expected behavior

MySQL:
image

Actual behavior

ShardingSphere-Proxy MySQL:
image

Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.

select _binary'abc', X'20', X'41'
@TeslaCN
Copy link
Member Author

TeslaCN commented Nov 22, 2022

I found set binary flag (0x80) cannot fix this issue. The root cause of the display problem probably relates to collation. But Proxy cannot retrieve field's collation via JDBC.

From MySQL:
image

From Proxy:
image

@TeslaCN
Copy link
Member Author

TeslaCN commented Nov 22, 2022

The binary flag is corrected. But the issue still exists.

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

No branches or pull requests

2 participants