We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
bit
string
Please answer these questions before submitting your issue. Thanks!
create table xx (b bit(1)); insert into xx values (b'1'); select count(*) from xx where b='1';
The reason is that we select a wrong target field type in function RefineComparedConstant.
RefineComparedConstant
mysql> create table xx (b bit(1)); Query OK, 0 rows affected (0.05 sec) mysql> insert into xx values (b'1'); Query OK, 1 row affected (0.00 sec) mysql> select count(*) from xx where b='1'; +----------+ | count(*) | +----------+ | 1 | +----------+ 1 row in set (0.00 sec)
mysql> create table xx (b bit(1)); Query OK, 0 rows affected (0.01 sec) mysql> insert into xx values (b'1'); Query OK, 1 row affected (0.00 sec) mysql> select count(*) from xx where b='1'; +----------+ | count(*) | +----------+ | 0 | +----------+ 1 row in set (0.00 sec)
tidb-server -V
select tidb_version();
mysql> select version(); +----------------------------------------+ | version() | +----------------------------------------+ | 5.7.25-TiDB-v4.0.0-alpha-32-g45790b579 | +----------------------------------------+ 1 row in set (0.00 sec)
The text was updated successfully, but these errors were encountered:
wshwsh12
No branches or pull requests
Bug Report
Please answer these questions before submitting your issue. Thanks!
If possible, provide a recipe for reproducing the error.
The reason is that we select a wrong target field type in function
RefineComparedConstant
.tidb-server -V
or runselect tidb_version();
on TiDB)?The text was updated successfully, but these errors were encountered: