File: alter_table%2Clist.rdiff

package info (click to toggle)
mariadb 1%3A11.8.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 772,520 kB
  • sloc: ansic: 2,414,714; cpp: 1,791,394; asm: 381,336; perl: 62,905; sh: 49,647; pascal: 40,897; java: 39,363; python: 20,791; yacc: 20,432; sql: 17,907; xml: 12,344; ruby: 8,544; cs: 6,542; makefile: 6,145; ada: 1,879; lex: 1,193; javascript: 996; objc: 80; tcl: 73; awk: 46; php: 22
file content (85 lines) | stat: -rw-r--r-- 3,126 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
@@ -142,13 +142,13 @@
 partition pn values less than maxvalue);
 ERROR HY000: Partitioned tables do not support CREATE TEMPORARY TABLE
 create or replace table t1 (x int)
-partition by range(x) (
-partition p1 values less than (10),
-partition p2 values less than (20),
-partition p3 values less than (30),
-partition p4 values less than (40),
-partition p5 values less than (50),
-partition pn values less than maxvalue);
+partition by list(x) (
+partition p1 values in (2, 3, 4),
+partition p2 values in (12, 13, 14),
+partition p3 values in (22, 23, 24),
+partition p4 values in (32, 33, 34),
+partition p5 values in (42, 43, 44),
+partition pn values in (52, 53, 54));
 insert into t1 values (2), (12), (22), (32), (42), (52);
 create or replace table tp2 (y int);
 insert tp2 values (88);
@@ -188,12 +188,12 @@
 t1	CREATE TABLE `t1` (
   `x` int(11) DEFAULT NULL
 ) ENGINE=X DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
- PARTITION BY RANGE (`x`)
-(PARTITION `p1` VALUES LESS THAN (10) ENGINE = X,
- PARTITION `p3` VALUES LESS THAN (30) ENGINE = X,
- PARTITION `p4` VALUES LESS THAN (40) ENGINE = X,
- PARTITION `p5` VALUES LESS THAN (50) ENGINE = X,
- PARTITION `pn` VALUES LESS THAN MAXVALUE ENGINE = X)
+ PARTITION BY LIST (`x`)
+(PARTITION `p1` VALUES IN (2,3,4) ENGINE = X,
+ PARTITION `p3` VALUES IN (22,23,24) ENGINE = X,
+ PARTITION `p4` VALUES IN (32,33,34) ENGINE = X,
+ PARTITION `p5` VALUES IN (42,43,44) ENGINE = X,
+ PARTITION `pn` VALUES IN (52,53,54) ENGINE = X)
 select * from t1 order by x;
 x
 2
@@ -218,11 +218,11 @@
 t1	CREATE TABLE `t1` (
   `x` int(11) DEFAULT NULL
 ) ENGINE=X DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
- PARTITION BY RANGE (`x`)
-(PARTITION `p1` VALUES LESS THAN (10) ENGINE = X,
- PARTITION `p4` VALUES LESS THAN (40) ENGINE = X,
- PARTITION `p5` VALUES LESS THAN (50) ENGINE = X,
- PARTITION `pn` VALUES LESS THAN MAXVALUE ENGINE = X)
+ PARTITION BY LIST (`x`)
+(PARTITION `p1` VALUES IN (2,3,4) ENGINE = X,
+ PARTITION `p4` VALUES IN (32,33,34) ENGINE = X,
+ PARTITION `p5` VALUES IN (42,43,44) ENGINE = X,
+ PARTITION `pn` VALUES IN (52,53,54) ENGINE = X)
 select * from t1 order by x;
 x
 2
@@ -248,10 +248,10 @@
 t1	CREATE TABLE `t1` (
   `x` int(11) DEFAULT NULL
 ) ENGINE=X DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
- PARTITION BY RANGE (`x`)
-(PARTITION `p1` VALUES LESS THAN (10) ENGINE = X,
- PARTITION `p5` VALUES LESS THAN (50) ENGINE = X,
- PARTITION `pn` VALUES LESS THAN MAXVALUE ENGINE = X)
+ PARTITION BY LIST (`x`)
+(PARTITION `p1` VALUES IN (2,3,4) ENGINE = X,
+ PARTITION `p5` VALUES IN (42,43,44) ENGINE = X,
+ PARTITION `pn` VALUES IN (52,53,54) ENGINE = X)
 select * from t1 order by x;
 x
 2
@@ -273,9 +273,9 @@
 t1	CREATE TABLE `t1` (
   `x` int(11) DEFAULT NULL
 ) ENGINE=X DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_uca1400_ai_ci
- PARTITION BY RANGE (`x`)
-(PARTITION `p1` VALUES LESS THAN (10) ENGINE = X,
- PARTITION `pn` VALUES LESS THAN MAXVALUE ENGINE = X)
+ PARTITION BY LIST (`x`)
+(PARTITION `p1` VALUES IN (2,3,4) ENGINE = X,
+ PARTITION `pn` VALUES IN (52,53,54) ENGINE = X)
 select * from t1 order by x;
 x
 2