Skip to content

Commit

Permalink
cherry pick pingcap#36830 to release-5.4
Browse files Browse the repository at this point in the history
Signed-off-by: ti-srebot <ti-srebot@pingcap.com>
  • Loading branch information
mjonss authored and ti-srebot committed Aug 18, 2022
1 parent ed5dd79 commit 5432b6e
Show file tree
Hide file tree
Showing 3 changed files with 579 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ddl/db_partition_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,10 @@ partition by range (a)
partition p0 values less than (200),
partition p1 values less than (300),
partition p2 values less than maxvalue)`)

// Fix https://github.com/pingcap/tidb/issues/35827
tk.MustExec(`create table t37 (id tinyint unsigned, idpart tinyint, i varchar(255)) partition by range (idpart) (partition p1 values less than (-1));`)
tk.MustGetErrCode(`create table t38 (id tinyint unsigned, idpart tinyint unsigned, i varchar(255)) partition by range (idpart) (partition p1 values less than (-1));`, errno.ErrPartitionConstDomain)
}

func (s *testIntegrationSuite2) TestCreateTableWithHashPartition(c *C) {
Expand Down
Loading

0 comments on commit 5432b6e

Please sign in to comment.