Skip to content

Commit 2e75080

Browse files
author
James Cor
committed
skipped tests for auto increment with integer limits
1 parent 935365f commit 2e75080

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

enginetest/queries/script_queries.go

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10465,7 +10465,7 @@ where
1046510465

1046610466
{
1046710467
Skip: true,
10468-
Query: "insert into mediumint_tbl values (9999999);",
10468+
Query: "insert into mediumint_tbl values (99999999);",
1046910469
ExpectedErr: sql.ErrValueOutOfRange,
1047010470
},
1047110471
{
@@ -10534,7 +10534,7 @@ where
1053410534
{"bigint_tbl", "CREATE TABLE `bigint_tbl` (\n" +
1053510535
" `i` bigint NOT NULL AUTO_INCREMENT,\n" +
1053610536
" PRIMARY KEY (`i`)\n" +
10537-
") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
10537+
") ENGINE=InnoDB AUTO_INCREMENT=9223372036854775807 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
1053810538
},
1053910539
},
1054010540
},
@@ -10557,11 +10557,11 @@ where
1055710557
},
1055810558
{
1055910559
Skip: true,
10560-
Query: "insert into tinyint_tbl values (127)",
10560+
Query: "insert into tinyint_tbl values (255)",
1056110561
Expected: []sql.Row{
1056210562
{types.OkResult{
1056310563
RowsAffected: 1,
10564-
InsertID: 127,
10564+
InsertID: 255,
1056510565
}},
1056610566
},
1056710567
},
@@ -10572,7 +10572,7 @@ where
1057210572
{"tinyint_tbl", "CREATE TABLE `tinyint_tbl` (\n" +
1057310573
" `i` tinyint NOT NULL AUTO_INCREMENT,\n" +
1057410574
" PRIMARY KEY (`i`)\n" +
10575-
") ENGINE=InnoDB AUTO_INCREMENT=127 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
10575+
") ENGINE=InnoDB AUTO_INCREMENT=255 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
1057610576
},
1057710577
},
1057810578

@@ -10583,11 +10583,11 @@ where
1058310583
},
1058410584
{
1058510585
Skip: true,
10586-
Query: "insert into smallint_tbl values (32767);",
10586+
Query: "insert into smallint_tbl values (65535);",
1058710587
Expected: []sql.Row{
1058810588
{types.OkResult{
1058910589
RowsAffected: 1,
10590-
InsertID: 32767,
10590+
InsertID: 65535,
1059110591
}},
1059210592
},
1059310593
},
@@ -10598,22 +10598,22 @@ where
1059810598
{"smallint_tbl", "CREATE TABLE `smallint_tbl` (\n" +
1059910599
" `i` smallint NOT NULL AUTO_INCREMENT,\n" +
1060010600
" PRIMARY KEY (`i`)\n" +
10601-
") ENGINE=InnoDB AUTO_INCREMENT=36727 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
10601+
") ENGINE=InnoDB AUTO_INCREMENT=65535 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
1060210602
},
1060310603
},
1060410604

1060510605
{
1060610606
Skip: true,
10607-
Query: "insert into mediumint_tbl values (9999999);",
10607+
Query: "insert into mediumint_tbl values (999999999);",
1060810608
ExpectedErr: sql.ErrValueOutOfRange,
1060910609
},
1061010610
{
1061110611
Skip: true,
10612-
Query: "insert into mediumint_tbl values (8388607);",
10612+
Query: "insert into mediumint_tbl values (16777215);",
1061310613
Expected: []sql.Row{
1061410614
{types.OkResult{
1061510615
RowsAffected: 1,
10616-
InsertID: 8388607,
10616+
InsertID: 16777215,
1061710617
}},
1061810618
},
1061910619
},
@@ -10623,7 +10623,7 @@ where
1062310623
{"mediumint_tbl", "CREATE TABLE `mediumint_tbl` (\n" +
1062410624
" `i` mediumint NOT NULL AUTO_INCREMENT,\n" +
1062510625
" PRIMARY KEY (`i`)\n" +
10626-
") ENGINE=InnoDB AUTO_INCREMENT=8388607 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
10626+
") ENGINE=InnoDB AUTO_INCREMENT=16777215 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
1062710627
},
1062810628
},
1062910629

@@ -10634,11 +10634,11 @@ where
1063410634
},
1063510635
{
1063610636
Skip: true,
10637-
Query: "insert into int_tbl values (2147483647)",
10637+
Query: "insert into int_tbl values (4294967295)",
1063810638
Expected: []sql.Row{
1063910639
{types.OkResult{
1064010640
RowsAffected: 1,
10641-
InsertID: 2147483647,
10641+
InsertID: 4294967295,
1064210642
}},
1064310643
},
1064410644
},
@@ -10648,22 +10648,22 @@ where
1064810648
{"int_tbl", "CREATE TABLE `int_tbl` (\n" +
1064910649
" `i` int NOT NULL AUTO_INCREMENT,\n" +
1065010650
" PRIMARY KEY (`i`)\n" +
10651-
") ENGINE=InnoDB AUTO_INCREMENT=2147483647 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
10651+
") ENGINE=InnoDB AUTO_INCREMENT=4294967295 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
1065210652
},
1065310653
},
1065410654

1065510655
{
1065610656
Skip: true,
10657-
Query: "insert into bigint_tbl values (99999999999999999999);",
10657+
Query: "insert into bigint_tbl values (999999999999999999999);",
1065810658
ExpectedErr: sql.ErrValueOutOfRange,
1065910659
},
1066010660
{
1066110661
Skip: true,
10662-
Query: "insert into bigint_tbl values (9223372036854775807);",
10662+
Query: "insert into bigint_tbl values (18446744073709551615);",
1066310663
Expected: []sql.Row{
1066410664
{types.OkResult{
1066510665
RowsAffected: 1,
10666-
InsertID: 9223372036854775807,
10666+
InsertID: 18446744073709551615,
1066710667
}},
1066810668
},
1066910669
},
@@ -10673,7 +10673,7 @@ where
1067310673
{"bigint_tbl", "CREATE TABLE `bigint_tbl` (\n" +
1067410674
" `i` bigint NOT NULL AUTO_INCREMENT,\n" +
1067510675
" PRIMARY KEY (`i`)\n" +
10676-
") ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
10676+
") ENGINE=InnoDB AUTO_INCREMENT=18446744073709551615 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_bin"},
1067710677
},
1067810678
},
1067910679
},

0 commit comments

Comments
 (0)