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
Please answer these questions before submitting your issue. Thanks!
Master branch and execute the following sql
MySQL 5.7
mysql> select d_bit + d_smallint, d_bit + d_decimal from all_types; Field 1: `d_bit + d_smallint` Catalog: `def` Database: `` Table: `` Org_table: `` Type: LONGLONG Collation: binary (63) Length: 11 Max_length: 2 Decimals: 0 Flags: UNSIGNED BINARY NUM Field 2: `d_bit + d_decimal` Catalog: `def` Database: `` Table: `` Org_table: `` Type: NEWDECIMAL Collation: binary (63) Length: 15 Max_length: 5 Decimals: 2 Flags: BINARY NUM +--------------------+-------------------+ | d_bit + d_smallint | d_bit + d_decimal | +--------------------+-------------------+ | 13 | 22.23 | +--------------------+-------------------+ 1 row in set (0.02 sec)
bit + smallint return LONGLONG and bit + decimal return NEWDECIMAL*
mysql> select d_bit + d_smallint, d_bit + d_decimal from all_types; No connection. Trying to reconnect... Connection id: 3 Current database: test Field 1: `d_bit + d_smallint` Catalog: `def` Database: `` Table: `` Org_table: `` Type: DOUBLE Collation: binary (63) Length: 0 Max_length: 2 Decimals: 31 Flags: NOT_NULL BINARY NUM Field 2: `d_bit + d_decimal` Catalog: `def` Database: `` Table: `` Org_table: `` Type: DOUBLE Collation: binary (63) Length: 0 Max_length: 5 Decimals: 31 Flags: NOT_NULL BINARY NUM +--------------------+-------------------+ | d_bit + d_smallint | d_bit + d_decimal | +--------------------+-------------------+ | 13 | 22.23 | +--------------------+-------------------+ 1 row in set (0.00 sec)
bit + smallint return DOUBLE and bit + decimal return DOUBLE
The text was updated successfully, but these errors were encountered:
Note: Make Sure that 'component', and 'severity' labels are added Example for how to fill out the template: #20100
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Master branch and execute the following sql
2. What did you expect to see? (Required)
MySQL 5.7
bit + smallint return LONGLONG and bit + decimal return NEWDECIMAL*
3. What did you see instead (Required)
bit + smallint return DOUBLE and bit + decimal return DOUBLE
4. What is your TiDB version? (Required)
The text was updated successfully, but these errors were encountered: