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
b615e0b6
Commit
b615e0b6
authored
Jun 03, 2006
by
mikael@c-3d08e253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#19067: Crash for default subpartitioning when altering the table
parent
a49ab689
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
18 deletions
+15
-18
mysql-test/r/information_schema_part.result
mysql-test/r/information_schema_part.result
+1
-1
sql/partition_element.h
sql/partition_element.h
+11
-15
sql/sql_partition.cc
sql/sql_partition.cc
+3
-2
No files found.
mysql-test/r/information_schema_part.result
View file @
b615e0b6
...
...
@@ -119,7 +119,7 @@ SHOW CREATE TABLE t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1 PARTITION BY RANGE (a) SUBPARTITION BY LINEAR HASH (a) (PARTITION p0 VALUES LESS THAN (10) )
) ENGINE=MyISAM DEFAULT CHARSET=latin1 PARTITION BY RANGE (a) SUBPARTITION BY LINEAR HASH (a) (PARTITION p0 VALUES LESS THAN (10)
ENGINE = MyISAM
)
select SUBPARTITION_METHOD FROM information_schema.partitions WHERE
table_schema="test" AND table_name="t1";
SUBPARTITION_METHOD
...
...
sql/partition_element.h
View file @
b615e0b6
...
...
@@ -64,24 +64,20 @@ public:
engine_type
(
NULL
),
part_state
(
PART_NORMAL
),
nodegroup_id
(
UNDEF_NODEGROUP
),
has_null_value
(
FALSE
)
{
subpartitions
.
empty
();
list_val_list
.
empty
();
}
partition_element
(
partition_element
*
part_elem
)
:
partition_name
(
NULL
),
range_value
(
0
),
has_null_value
(
FALSE
)
:
part_max_rows
(
part_elem
->
part_max_rows
),
part_min_rows
(
part_elem
->
part_min_rows
),
partition_name
(
NULL
),
tablespace_name
(
part_elem
->
tablespace_name
),
range_value
(
0
),
part_comment
(
part_elem
->
part_comment
),
data_file_name
(
part_elem
->
data_file_name
),
index_file_name
(
part_elem
->
index_file_name
),
engine_type
(
part_elem
->
engine_type
),
part_state
(
part_elem
->
part_state
),
nodegroup_id
(
part_elem
->
nodegroup_id
),
has_null_value
(
FALSE
)
{
subpartitions
.
empty
();
list_val_list
.
empty
();
part_max_rows
=
part_elem
->
part_max_rows
;
part_min_rows
=
part_elem
->
part_min_rows
;
tablespace_name
=
part_elem
->
tablespace_name
;
part_comment
=
part_elem
->
part_comment
;
data_file_name
=
part_elem
->
data_file_name
;
index_file_name
=
part_elem
->
index_file_name
;
engine_type
=
part_elem
->
engine_type
;
part_state
=
part_elem
->
part_state
;
nodegroup_id
=
part_elem
->
nodegroup_id
;
}
~
partition_element
()
{}
};
sql/sql_partition.cc
View file @
b615e0b6
...
...
@@ -1886,9 +1886,10 @@ char *generate_partition_syntax(partition_info *part_info,
err
+=
add_partition_values
(
fptr
,
part_info
,
part_elem
);
if
(
!
part_info
->
is_sub_partitioned
()
||
part_info
->
use_default_subpartitions
)
{
err
+=
add_partition_options
(
fptr
,
part_elem
);
if
(
part_info
->
is_sub_partitioned
()
&&
(
!
part_info
->
use_default_subpartitions
))
}
else
{
err
+=
add_space
(
fptr
);
err
+=
add_begin_parenthesis
(
fptr
);
...
...
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