Skip to content

Commit

Permalink
fix: change auto_increment.testbak to backup test, the cases in this …
Browse files Browse the repository at this point in the history
…file test unsigned, this will be opened after we completely support unsigned types #1151
  • Loading branch information
hustjieke authored and mergify[bot] committed Jan 13, 2023
1 parent 38d7eb4 commit e3cfea3
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ CREATE TABLE tintu (
PRIMARY KEY (id)
) engine=tianmu;

insert into tintu (id, data) values(4294967294, "first"),(63, "middle"),(0, "last");
#insert into tintu (id, data) values(4294967294, "first"),(63, "middle"),(0, "last");
insert into tintu (id, data) values(2147483647, "first"),(63, "middle"),(0, "last");
select * from tintu;
--error 1062
insert into tintu (id, data) values (0, "last");
Expand Down Expand Up @@ -123,7 +124,8 @@ CREATE TABLE tmediumintu (
PRIMARY KEY (id)
) engine=tianmu;

insert into tmediumintu (id, data) values(16777214, "first"),(63, "middle"),(0, "last");
#insert into tmediumintu (id, data) values(16777214, "first"),(63, "middle"),(0, "last");
insert into tmediumintu (id, data) values(8388607, "first"),(63, "middle"),(0, "last");
select * from tmediumintu;
--error 1062
insert into tmediumintu (id, data) values (0, "last");
Expand All @@ -135,7 +137,8 @@ CREATE TABLE tbigintu (
PRIMARY KEY (id)
) engine=tianmu;

insert into tbigintu (id, data) values(18446744073709551614, "first"),(63, "middle"),(0, "last");
#insert into tbigintu (id, data) values(18446744073709551614, "first"),(63, "middle"),(0, "last");
insert into tbigintu (id, data) values(9223372036854775807, "first"),(63, "middle"),(0, "last");
select * from tbigintu;
--error 1062
insert into tbigintu (id, data) values (0, "last");
Expand All @@ -152,4 +155,4 @@ eval LOAD DATA LOCAL INFILE '$MYSQL_TEST_DIR/suite/tianmu/std_data/auto_incremen
select * from auto_increment_negative;

# Clean UP
DROP DATABASE auto_increment_db;
DROP DATABASE auto_increment_db;

0 comments on commit e3cfea3

Please sign in to comment.