Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Defined2014 committed Oct 17, 2023
1 parent 8dc4bcc commit c9cdf28
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/integrationtest/r/ddl/constraint.result
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ insert into t values(1), (2), (3);
alter table t add constraint check(a < 2);
Error 3819 (HY000): Check constraint 't_chk_1' is violated.
alter table t add constraint check(a < 2) not enforced;
Error 3819 (HY000): Check constraint 't_chk_2' is violated.
Error 3819 (HY000): Check constraint 't_chk_1' is violated.
drop table if exists t;
set @@global.tidb_enable_check_constraint = 1;
create table t(a int not null check(a>0), b int, constraint haha check(a < b), check(a<b+1));
Expand Down
3 changes: 2 additions & 1 deletion tests/integrationtest/t/expression/builtin.test
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ select * from tb5 where cast(b as unsigned int)=0;
drop table tb5;
create table tb5(a double, b bigint unsigned);
insert into tb5 (a, b) values (18446744073709551616, 18446744073709551615);
--enable_warnings
# TODO: fix https://github.com/pingcap/tidb/issues/47693
# --enable_warnings
select * from tb5 where cast(a as unsigned int)=b;
--disable_warnings
drop table tb5;
Expand Down

0 comments on commit c9cdf28

Please sign in to comment.