-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
affects-7.0affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.may-affects-4.0This bug maybe affects 4.0.x versions.This bug maybe affects 4.0.x versions.may-affects-5.0This bug maybe affects 5.0.x versions.This bug maybe affects 5.0.x versions.may-affects-5.1This bug maybe affects 5.1.x versions.This bug maybe affects 5.1.x versions.may-affects-5.2This bug maybe affects 5.2.x versions.This bug maybe affects 5.2.x versions.may-affects-5.3This bug maybe affects 5.3.x versions.This bug maybe affects 5.3.x versions.may-affects-5.4This bug maybe affects 5.4.x versions.This bug maybe affects 5.4.x versions.may-affects-6.0may-affects-6.1may-affects-6.2may-affects-6.3may-affects-6.4may-affects-6.5may-affects-6.6severity/majorsig/executionSIG executionSIG executiontype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
Run the following statements.
CREATE TABLE t1 (c1 BOOL NOT NULL);
INSERT INTO t1 VALUES (-127);
SELECT c1 FROM t1 WHERE CAST(IFNULL(t1.c1, '-') AS CHAR); -- actual: {}, expected: {-127}
2. What did you expect to see? (Required)
The SELECT statement should return column c1 value
3. What did you see instead (Required)
Nothing is returned by the SELECT statement.
4. What is your TiDB version? (Required)
Release Version: v6.6.0
Edition: Community
Git Commit Hash: f4ca0821fb96a2bdd37d2fb97eb26c07fc58d4e4
Git Branch: heads/refs/tags/v6.6.0
UTC Build Time: 2023-02-17 14:49:02
GoVersion: go1.19.5
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv
Metadata
Metadata
Assignees
Labels
affects-7.0affects-7.1This bug affects the 7.1.x(LTS) versions.This bug affects the 7.1.x(LTS) versions.affects-7.5This bug affects the 7.5.x(LTS) versions.This bug affects the 7.5.x(LTS) versions.affects-8.1This bug affects the 8.1.x(LTS) versions.This bug affects the 8.1.x(LTS) versions.may-affects-4.0This bug maybe affects 4.0.x versions.This bug maybe affects 4.0.x versions.may-affects-5.0This bug maybe affects 5.0.x versions.This bug maybe affects 5.0.x versions.may-affects-5.1This bug maybe affects 5.1.x versions.This bug maybe affects 5.1.x versions.may-affects-5.2This bug maybe affects 5.2.x versions.This bug maybe affects 5.2.x versions.may-affects-5.3This bug maybe affects 5.3.x versions.This bug maybe affects 5.3.x versions.may-affects-5.4This bug maybe affects 5.4.x versions.This bug maybe affects 5.4.x versions.may-affects-6.0may-affects-6.1may-affects-6.2may-affects-6.3may-affects-6.4may-affects-6.5may-affects-6.6severity/majorsig/executionSIG executionSIG executiontype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.