summaryrefslogtreecommitdiff
path: root/mysql-test/r/partition_range.result
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/r/partition_range.result')
-rw-r--r--mysql-test/r/partition_range.result92
1 files changed, 46 insertions, 46 deletions
diff --git a/mysql-test/r/partition_range.result b/mysql-test/r/partition_range.result
index 94c727f6339..dd9e074db0c 100644
--- a/mysql-test/r/partition_range.result
+++ b/mysql-test/r/partition_range.result
@@ -22,9 +22,9 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (TO_DAYS(a))
-SUBPARTITION BY HASH (to_seconds(a))
-(PARTITION p0 VALUES LESS THAN (1) ENGINE = MyISAM)
+ PARTITION BY RANGE (to_days(`a`))
+SUBPARTITION BY HASH (to_seconds(`a`))
+(PARTITION `p0` VALUES LESS THAN (1) ENGINE = MyISAM)
drop table t1;
create table t1 (a int)
partition by range (a)
@@ -38,8 +38,8 @@ partition p1 VALUES LESS THAN (TO_SECONDS('2007-04-01 00:00:00')));
select partition_method, partition_expression, partition_description
from information_schema.partitions where table_name = "t1";
partition_method partition_expression partition_description
-RANGE TO_SECONDS(a) 63340531200
-RANGE TO_SECONDS(a) 63342604800
+RANGE to_seconds(`a`) 63340531200
+RANGE to_seconds(`a`) 63342604800
INSERT INTO t1 VALUES ('2007-03-01 12:00:00'), ('2007-03-07 12:00:00');
INSERT INTO t1 VALUES ('2007-03-08 12:00:00'), ('2007-03-15 12:00:00');
explain partitions select * from t1 where a < '2007-03-08 00:00:00';
@@ -62,9 +62,9 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` datetime NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (TO_SECONDS(a))
-(PARTITION p0 VALUES LESS THAN (63340531200) ENGINE = MyISAM,
- PARTITION p1 VALUES LESS THAN (63342604800) ENGINE = MyISAM)
+ PARTITION BY RANGE (to_seconds(`a`))
+(PARTITION `p0` VALUES LESS THAN (63340531200) ENGINE = MyISAM,
+ PARTITION `p1` VALUES LESS THAN (63342604800) ENGINE = MyISAM)
drop table t1;
create table t1 (a date)
partition by range(to_seconds(a))
@@ -93,9 +93,9 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` date DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_seconds(a))
-(PARTITION p0 VALUES LESS THAN (63240134400) ENGINE = MyISAM,
- PARTITION p1 VALUES LESS THAN (63271756800) ENGINE = MyISAM)
+ PARTITION BY RANGE (to_seconds(`a`))
+(PARTITION `p0` VALUES LESS THAN (63240134400) ENGINE = MyISAM,
+ PARTITION `p1` VALUES LESS THAN (63271756800) ENGINE = MyISAM)
drop table t1;
create table t1 (a datetime)
partition by range(to_seconds(a))
@@ -123,9 +123,9 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` datetime DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (to_seconds(a))
-(PARTITION p0 VALUES LESS THAN (63240177600) ENGINE = MyISAM,
- PARTITION p1 VALUES LESS THAN (63271800000) ENGINE = MyISAM)
+ PARTITION BY RANGE (to_seconds(`a`))
+(PARTITION `p0` VALUES LESS THAN (63240177600) ENGINE = MyISAM,
+ PARTITION `p1` VALUES LESS THAN (63271800000) ENGINE = MyISAM)
drop table t1;
create table t1 (a int, b char(20))
partition by range columns(a,b)
@@ -153,8 +153,8 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
+ PARTITION BY RANGE (`a`)
+(PARTITION `p0` VALUES LESS THAN MAXVALUE ENGINE = MyISAM)
drop table t1;
create table t1 (a integer)
partition by range (a)
@@ -284,10 +284,10 @@ t1 CREATE TABLE `t1` (
`c` int(11) NOT NULL,
PRIMARY KEY (`a`,`b`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (a)
-(PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM,
- PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM,
- PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM)
+ PARTITION BY RANGE (`a`)
+(PARTITION `x1` VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM,
+ PARTITION `x2` VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM,
+ PARTITION `x3` VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM)
ALTER TABLE t1
partition by range (a)
partitions 3
@@ -308,10 +308,10 @@ t1 CREATE TABLE `t1` (
`c` int(11) NOT NULL,
PRIMARY KEY (`a`,`b`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (a)
-(PARTITION x1 VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM,
- PARTITION x2 VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM,
- PARTITION x3 VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM)
+ PARTITION BY RANGE (`a`)
+(PARTITION `x1` VALUES LESS THAN (5) TABLESPACE = ts1 ENGINE = MyISAM,
+ PARTITION `x2` VALUES LESS THAN (10) TABLESPACE = ts2 ENGINE = MyISAM,
+ PARTITION `x3` VALUES LESS THAN MAXVALUE TABLESPACE = ts3 ENGINE = MyISAM)
drop table if exists t1;
CREATE TABLE t1 (
a int not null,
@@ -409,14 +409,14 @@ t1 CREATE TABLE `t1` (
`c` int(11) NOT NULL,
PRIMARY KEY (`a`,`b`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (a)
-SUBPARTITION BY HASH (a+b)
-(PARTITION x1 VALUES LESS THAN (1)
- (SUBPARTITION x11 ENGINE = MyISAM,
- SUBPARTITION x12 ENGINE = MyISAM),
- PARTITION x2 VALUES LESS THAN (5)
- (SUBPARTITION x21 ENGINE = MyISAM,
- SUBPARTITION x22 ENGINE = MyISAM))
+ PARTITION BY RANGE (`a`)
+SUBPARTITION BY HASH (`a` + `b`)
+(PARTITION `x1` VALUES LESS THAN (1)
+ (SUBPARTITION `x11` ENGINE = MyISAM,
+ SUBPARTITION `x12` ENGINE = MyISAM),
+ PARTITION `x2` VALUES LESS THAN (5)
+ (SUBPARTITION `x21` ENGINE = MyISAM,
+ SUBPARTITION `x22` ENGINE = MyISAM))
ALTER TABLE t1 ADD COLUMN d int;
show create table t1;
Table Create Table
@@ -427,14 +427,14 @@ t1 CREATE TABLE `t1` (
`d` int(11) DEFAULT NULL,
PRIMARY KEY (`a`,`b`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (a)
-SUBPARTITION BY HASH (a+b)
-(PARTITION x1 VALUES LESS THAN (1)
- (SUBPARTITION x11 ENGINE = MyISAM,
- SUBPARTITION x12 ENGINE = MyISAM),
- PARTITION x2 VALUES LESS THAN (5)
- (SUBPARTITION x21 ENGINE = MyISAM,
- SUBPARTITION x22 ENGINE = MyISAM))
+ PARTITION BY RANGE (`a`)
+SUBPARTITION BY HASH (`a` + `b`)
+(PARTITION `x1` VALUES LESS THAN (1)
+ (SUBPARTITION `x11` ENGINE = MyISAM,
+ SUBPARTITION `x12` ENGINE = MyISAM),
+ PARTITION `x2` VALUES LESS THAN (5)
+ (SUBPARTITION `x21` ENGINE = MyISAM,
+ SUBPARTITION `x22` ENGINE = MyISAM))
drop table t1;
CREATE TABLE t1 (
a int not null,
@@ -658,9 +658,9 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` bigint(20) unsigned DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (0) ENGINE = MyISAM,
- PARTITION p1 VALUES LESS THAN (10) ENGINE = MyISAM)
+ PARTITION BY RANGE (`a`)
+(PARTITION `p0` VALUES LESS THAN (0) ENGINE = MyISAM,
+ PARTITION `p1` VALUES LESS THAN (10) ENGINE = MyISAM)
drop table t1;
create table t1 (a bigint unsigned)
partition by range (a)
@@ -671,9 +671,9 @@ Table Create Table
t1 CREATE TABLE `t1` (
`a` bigint(20) unsigned DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
- PARTITION BY RANGE (a)
-(PARTITION p0 VALUES LESS THAN (2) ENGINE = MyISAM,
- PARTITION p1 VALUES LESS THAN (10) ENGINE = MyISAM)
+ PARTITION BY RANGE (`a`)
+(PARTITION `p0` VALUES LESS THAN (2) ENGINE = MyISAM,
+ PARTITION `p1` VALUES LESS THAN (10) ENGINE = MyISAM)
insert into t1 values (0xFFFFFFFFFFFFFFFF);
ERROR HY000: Table has no partition for value 18446744073709551615
drop table t1;