Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
47ebf1f4
Commit
47ebf1f4
authored
Oct 06, 2008
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Plain Diff
merging
parents
87a77eec
e3e4fdd0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
mysql-test/r/partition.result
mysql-test/r/partition.result
+3
-1
mysql-test/t/partition.test
mysql-test/t/partition.test
+3
-1
No files found.
mysql-test/r/partition.result
View file @
47ebf1f4
...
@@ -1448,13 +1448,15 @@ create trigger t_ad after delete on t for each row insert into t values (old.s1)
...
@@ -1448,13 +1448,15 @@ create trigger t_ad after delete on t for each row insert into t values (old.s1)
insert into t values (1);
insert into t values (1);
drop table t;
drop table t;
USE mysql;
USE mysql;
TRUNCATE TABLE general_log;
SET @old_general_log_state = @@global.general_log;
SET GLOBAL general_log = 0;
SET GLOBAL general_log = 0;
ALTER TABLE general_log ENGINE = MyISAM;
ALTER TABLE general_log ENGINE = MyISAM;
ALTER TABLE general_log PARTITION BY RANGE (TO_DAYS(event_time))
ALTER TABLE general_log PARTITION BY RANGE (TO_DAYS(event_time))
(PARTITION p0 VALUES LESS THAN (733144), PARTITION p1 VALUES LESS THAN (3000000));
(PARTITION p0 VALUES LESS THAN (733144), PARTITION p1 VALUES LESS THAN (3000000));
ERROR HY000: Incorrect usage of PARTITION and log table
ERROR HY000: Incorrect usage of PARTITION and log table
ALTER TABLE general_log ENGINE = CSV;
ALTER TABLE general_log ENGINE = CSV;
SET GLOBAL general_log =
default
;
SET GLOBAL general_log =
@old_general_log_state
;
use test;
use test;
create table t2 (b int);
create table t2 (b int);
create table t1 (b int)
create table t1 (b int)
...
...
mysql-test/t/partition.test
View file @
47ebf1f4
...
@@ -1589,13 +1589,15 @@ drop table t;
...
@@ -1589,13 +1589,15 @@ drop table t;
#
#
USE
mysql
;
USE
mysql
;
TRUNCATE
TABLE
general_log
;
SET
@
old_general_log_state
=
@@
global
.
general_log
;
SET
GLOBAL
general_log
=
0
;
SET
GLOBAL
general_log
=
0
;
ALTER
TABLE
general_log
ENGINE
=
MyISAM
;
ALTER
TABLE
general_log
ENGINE
=
MyISAM
;
--
error
ER_WRONG_USAGE
--
error
ER_WRONG_USAGE
ALTER
TABLE
general_log
PARTITION
BY
RANGE
(
TO_DAYS
(
event_time
))
ALTER
TABLE
general_log
PARTITION
BY
RANGE
(
TO_DAYS
(
event_time
))
(
PARTITION
p0
VALUES
LESS
THAN
(
733144
),
PARTITION
p1
VALUES
LESS
THAN
(
3000000
));
(
PARTITION
p0
VALUES
LESS
THAN
(
733144
),
PARTITION
p1
VALUES
LESS
THAN
(
3000000
));
ALTER
TABLE
general_log
ENGINE
=
CSV
;
ALTER
TABLE
general_log
ENGINE
=
CSV
;
SET
GLOBAL
general_log
=
default
;
SET
GLOBAL
general_log
=
@
old_general_log_state
;
use
test
;
use
test
;
#
#
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment