You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
droptable if exists t;
createtablet(a bit(20), b float, c double, d int);
insert into t values(10, 10, 10, 10), (1, -1, 2, -2), (2, -2, 1, 1), (2, 1.1, 2.1, 10.1);
select a from t unionselect10;
2. What did you expect to see? (Required)
mysql>droptableif exists t;
Query OK, 0 rows affected (0.04 sec)
mysql> create table t(a bit(20), b float, c double, d int);
Query OK, 0 rows affected (0.07 sec)
mysql>insert into t values(10, 10, 10, 10), (1, -1, 2, -2), (2, -2, 1, 1), (2, 1.1, 2.1, 10.1);
Query OK, 4 rows affected (0.04 sec)
Records: 4 Duplicates: 0 Warnings: 0
mysql>select a from t unionselect10;
+------+
| a |
+------+
| 10 |
| 1 |
| 2 |
+------+3 rows inset (0.23 sec)
3. What did you see instead (Required)
mysql>select a from t unionselect10;
+----------+
| a |
+----------+
| 0x00000A |
| 0x3130 |
| 0x000001 |
| 0x000002 |
+----------+4 rows inset (0.00 sec)
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
2. What did you expect to see? (Required)
3. What did you see instead (Required)
4. What is your TiDB version? (Required)
master: 096281e
release-4.0: 11a9254
release-5.0: e2740f5
The text was updated successfully, but these errors were encountered: