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
246a2a7f
Commit
246a2a7f
authored
Feb 15, 2006
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/jimw/my/mysql-5.1-16775
into mysql.com:/home/jimw/my/mysql-5.1-clean
parents
28a88a07
7cdfacde
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-2
mysql-test/r/partition.result
mysql-test/r/partition.result
+8
-0
mysql-test/t/partition.test
mysql-test/t/partition.test
+13
-0
sql/ha_partition.cc
sql/ha_partition.cc
+3
-2
No files found.
mysql-test/r/partition.result
View file @
246a2a7f
...
...
@@ -300,3 +300,11 @@ select * from t1 where f1 = 10;
f1 f2
10 1
drop table t1;
set session storage_engine= 'memory';
create table t1 (f_int1 int(11) default null) engine = memory
partition by range (f_int1) subpartition by hash (f_int1)
(partition part1 values less than (1000)
(subpartition subpart11 engine = memory));
set session storage_engine='myisam';
drop table t1;
End of 5.1 tests
mysql-test/t/partition.test
View file @
246a2a7f
...
...
@@ -380,3 +380,16 @@ partition partf values less than (10000));
insert
into
t1
values
(
10
,
1
);
select
*
from
t1
where
f1
=
10
;
drop
table
t1
;
#
# Bug #16775: Wrong engine type stored for subpartition
#
set
session
storage_engine
=
'memory'
;
create
table
t1
(
f_int1
int
(
11
)
default
null
)
engine
=
memory
partition
by
range
(
f_int1
)
subpartition
by
hash
(
f_int1
)
(
partition
part1
values
less
than
(
1000
)
(
subpartition
subpart11
engine
=
memory
));
set
session
storage_engine
=
'myisam'
;
drop
table
t1
;
--
echo
End
of
5.1
tests
sql/ha_partition.cc
View file @
246a2a7f
...
...
@@ -1937,7 +1937,8 @@ bool ha_partition::create_handler_file(const char *name)
name_buffer_ptr
+=
name_add
(
name_buffer_ptr
,
part_name
,
subpart_name
);
*
engine_array
=
(
uchar
)
ha_legacy_type
(
part_elem
->
engine_type
);
*
engine_array
=
(
uchar
)
ha_legacy_type
(
subpart_elem
->
engine_type
);
DBUG_PRINT
(
"info"
,
(
"engine: %u"
,
*
engine_array
));
engine_array
++
;
}
}
...
...
@@ -1954,7 +1955,7 @@ bool ha_partition::create_handler_file(const char *name)
Create and write and close file
to be used at open, delete_table and rename_table
*/
fn_format
(
file_name
,
name
,
""
,
".par"
,
MY_APPEND_EXT
);
fn_format
(
file_name
,
name
,
""
,
ha_par_ext
,
MY_APPEND_EXT
);
if
((
file
=
my_create
(
file_name
,
CREATE_MODE
,
O_RDWR
|
O_TRUNC
,
MYF
(
MY_WME
)))
>=
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