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
1411d279
Commit
1411d279
authored
Mar 03, 2008
by
gluh@mysql.com/mgluh.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test case fix
parent
644fdc8c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
48 deletions
+46
-48
mysql-test/r/partition.result
mysql-test/r/partition.result
+0
-19
mysql-test/r/partition_not_windows.result
mysql-test/r/partition_not_windows.result
+19
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+0
-29
mysql-test/t/partition_not_windows.test
mysql-test/t/partition_not_windows.test
+27
-0
No files found.
mysql-test/r/partition.result
View file @
1411d279
...
...
@@ -1207,25 +1207,6 @@ SELECT t2.id FROM t2 WHERE t2.id IN (SELECT id FROM t1 WHERE status = 'Verified'
id
22589
drop table t1, t2;
set @org_mode=@@sql_mode;
set @@sql_mode='NO_DIR_IN_CREATE';
select @@sql_mode;
@@sql_mode
NO_DIR_IN_CREATE
create table t1 (i int )
partition by range (i)
(
partition p01 values less than (1000)
data directory='/not/existing'
index directory='/not/existing'
);
show create table t2;
Table Create Table
t2 CREATE TABLE `t2` (
`i` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (i) (PARTITION p01 VALUES LESS THAN (1000) ENGINE = MyISAM) */
DROP TABLE t1, t2;
set @@sql_mode=@org_mode;
create table t1 (c1 varchar(255),c2 tinyint,primary key(c1))
partition by key (c1) partitions 10 ;
insert into t1 values ('aaa','1') on duplicate key update c2 = c2 + 1;
...
...
mysql-test/r/partition_not_windows.result
View file @
1411d279
...
...
@@ -11,6 +11,25 @@ partition p2 VALUES LESS THAN (2) DATA DIRECTORY = 'MYSQLTEST_VARDIR/tmp' INDEX
(SUBPARTITION subpart20, SUBPARTITION subpart21));
Checking if file exists after alter
drop table t1;
set @org_mode=@@sql_mode;
set @@sql_mode='NO_DIR_IN_CREATE';
select @@sql_mode;
@@sql_mode
NO_DIR_IN_CREATE
create table t1 (i int )
partition by range (i)
(
partition p01 values less than (1000)
data directory='/not/existing'
index directory='/not/existing'
);
show create table t2;
Table Create Table
t2 CREATE TABLE `t2` (
`i` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 /*!50100 PARTITION BY RANGE (i) (PARTITION p01 VALUES LESS THAN (1000) ENGINE = MyISAM) */
DROP TABLE t1, t2;
set @@sql_mode=@org_mode;
DROP TABLE IF EXISTS `example`;
CREATE TABLE `example` (
`ID_EXAMPLE` int(10) unsigned NOT NULL AUTO_INCREMENT,
...
...
mysql-test/t/partition.test
View file @
1411d279
...
...
@@ -1398,35 +1398,6 @@ SELECT t2.id FROM t2 WHERE t2.id IN (SELECT id FROM t1 WHERE status = 'Verified'
drop
table
t1
,
t2
;
#
# Bug #24633 SQL MODE "NO_DIR_IN_CREATE" does not work with partitioned tables
#
disable_query_log
;
eval
create
table
t2
(
i
int
)
partition
by
range
(
i
)
(
partition
p01
values
less
than
(
1000
)
data
directory
=
"
$MYSQLTEST_VARDIR
/tmp/"
index
directory
=
"
$MYSQLTEST_VARDIR
/tmp/"
);
enable_query_log
;
set
@
org_mode
=@@
sql_mode
;
set
@@
sql_mode
=
'NO_DIR_IN_CREATE'
;
select
@@
sql_mode
;
create
table
t1
(
i
int
)
partition
by
range
(
i
)
(
partition
p01
values
less
than
(
1000
)
data
directory
=
'/not/existing'
index
directory
=
'/not/existing'
);
show
create
table
t2
;
DROP
TABLE
t1
,
t2
;
set
@@
sql_mode
=@
org_mode
;
#
# Bug #27123 partition + on duplicate key update + varchar = Can't find record in <table>
#
...
...
mysql-test/t/partition_not_windows.test
View file @
1411d279
...
...
@@ -67,6 +67,33 @@ eval ALTER TABLE t1 REORGANIZE PARTITION p0 INTO
drop
table
t1
;
#
# Bug #24633 SQL MODE "NO_DIR_IN_CREATE" does not work with partitioned tables
#
disable_query_log
;
eval
create
table
t2
(
i
int
)
partition
by
range
(
i
)
(
partition
p01
values
less
than
(
1000
)
data
directory
=
"
$MYSQLTEST_VARDIR
/tmp/"
index
directory
=
"
$MYSQLTEST_VARDIR
/tmp/"
);
enable_query_log
;
set
@
org_mode
=@@
sql_mode
;
set
@@
sql_mode
=
'NO_DIR_IN_CREATE'
;
select
@@
sql_mode
;
create
table
t1
(
i
int
)
partition
by
range
(
i
)
(
partition
p01
values
less
than
(
1000
)
data
directory
=
'/not/existing'
index
directory
=
'/not/existing'
);
show
create
table
t2
;
DROP
TABLE
t1
,
t2
;
set
@@
sql_mode
=@
org_mode
;
# End Windows specific test failures.
# These tests contain non-Windows specific directory/file format.
...
...
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