You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: ddl/db_test.go
+16
Original file line number
Diff line number
Diff line change
@@ -1735,6 +1735,22 @@ func (s *testDBSuite) TestCreateTableWithPartition(c *C) {
1735
1735
partition p1 values less than (to_seconds('2005-01-01')));`)
1736
1736
s.tk.MustQuery("show create table t26").Check(
1737
1737
testkit.Rows("t26 CREATE TABLE `t26` (\n `a` date DEFAULT NULL\n) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin\nPARTITION BY RANGE ( to_seconds(`a`) ) (\n PARTITION p0 VALUES LESS THAN (63240134400),\n PARTITION p1 VALUES LESS THAN (63271756800)\n)"))
1738
+
s.tk.MustExec(`create table t27 (a bigint unsigned not null)
1739
+
partition by range(a) (
1740
+
partition p0 values less than (10),
1741
+
partition p1 values less than (100),
1742
+
partition p2 values less than (1000),
1743
+
partition p3 values less than (18446744073709551000),
1744
+
partition p4 values less than (18446744073709551614)
1745
+
);`)
1746
+
s.tk.MustExec(`create table t28 (a bigint unsigned not null)
1747
+
partition by range(a) (
1748
+
partition p0 values less than (10),
1749
+
partition p1 values less than (100),
1750
+
partition p2 values less than (1000),
1751
+
partition p3 values less than (18446744073709551000 + 1),
1752
+
partition p4 values less than (18446744073709551000 + 10)
0 commit comments