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
eb7a3fc9
Commit
eb7a3fc9
authored
Sep 10, 2009
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Plain Diff
Local merge.
parents
32055c1c
32c7efa6
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
4 deletions
+20
-4
mysql-test/r/partition_innodb.result
mysql-test/r/partition_innodb.result
+4
-0
mysql-test/t/partition_innodb.test
mysql-test/t/partition_innodb.test
+12
-0
sql/unireg.cc
sql/unireg.cc
+4
-4
No files found.
mysql-test/r/partition_innodb.result
View file @
eb7a3fc9
...
...
@@ -270,3 +270,7 @@ SUBPARTITION BY KEY (char_column)
SUBPARTITIONS 2
(PARTITION p1 VALUES LESS THAN (5) ENGINE = MyISAM) */
drop table t1;
CREATE TABLE t1 (a INT) ENGINE=InnoDB
PARTITION BY list(a) (PARTITION p1 VALUES IN (1));
CREATE INDEX i1 ON t1 (a);
DROP TABLE t1;
mysql-test/t/partition_innodb.test
View file @
eb7a3fc9
...
...
@@ -287,3 +287,15 @@ PARTITION BY RANGE (int_column)
(
PARTITION
p1
VALUES
LESS
THAN
(
5
));
show
create
table
t1
;
drop
table
t1
;
#
# BUG#46483 - drop table of partitioned table may leave extraneous file
# Note: was only repeatable with InnoDB plugin
#
CREATE
TABLE
t1
(
a
INT
)
ENGINE
=
InnoDB
PARTITION
BY
list
(
a
)
(
PARTITION
p1
VALUES
IN
(
1
));
CREATE
INDEX
i1
ON
t1
(
a
);
DROP
TABLE
t1
;
let
$MYSQLD_DATADIR
=
`SELECT @@datadir`
;
# Before the fix it should show extra file like #sql-2405_2.par
--
list_files
$MYSQLD_DATADIR
/
test
/
*
sql/unireg.cc
View file @
eb7a3fc9
...
...
@@ -412,10 +412,10 @@ int rea_create_table(THD *thd, const char *path,
DBUG_ASSERT
(
*
fn_rext
(
frm_name
));
if
(
thd
->
variables
.
keep_files_on_create
)
create_info
->
options
|=
HA_CREATE_KEEP_FILES
;
if
(
file
->
ha_create_handler_files
(
path
,
NULL
,
CHF_CREATE_FLAG
,
create_info
))
goto
err_handler
;
if
(
!
create_info
->
frm_only
&&
ha_create_table
(
thd
,
path
,
db
,
table_name
,
create_info
,
0
))
if
(
!
create_info
->
frm_only
&&
(
file
->
ha_create_handler_files
(
path
,
NULL
,
CHF_CREATE_FLAG
,
create_info
)
||
ha_create_table
(
thd
,
path
,
db
,
table_name
,
create_info
,
0
)
))
goto
err_handler
;
DBUG_RETURN
(
0
);
...
...
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