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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
fe46ee91
Commit
fe46ee91
authored
Apr 21, 2006
by
mikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#18962: Crash of ALTER TABLE .. DROP PARTITION ...
Review fixes
parent
a3f152cc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
sql/partition_info.cc
sql/partition_info.cc
+3
-2
sql/partition_info.h
sql/partition_info.h
+1
-0
No files found.
sql/partition_info.cc
View file @
fe46ee91
...
...
@@ -88,7 +88,7 @@ partition_info *partition_info::get_clone()
The external routine needing this code is check_partition_info
*/
#define MAX_PART_NAME_SIZE
16
#define MAX_PART_NAME_SIZE
8
char
*
partition_info
::
create_default_partition_names
(
uint
part_no
,
uint
no_parts
,
uint
start_no
)
...
...
@@ -125,7 +125,8 @@ char *partition_info::create_default_partition_names(uint part_no, uint no_parts
0 Memory allocation error
*/
char
*
create_subpartition_name
(
uint
subpart_no
,
const
char
*
part_name
)
char
*
partition_info
::
create_subpartition_name
(
uint
subpart_no
,
const
char
*
part_name
)
{
uint
size_alloc
=
strlen
(
part_name
)
+
MAX_PART_NAME_SIZE
;
char
*
ptr
=
sql_calloc
(
size_alloc
);
...
...
sql/partition_info.h
View file @
fe46ee91
...
...
@@ -257,6 +257,7 @@ class partition_info : public Sql_alloc
bool
set_up_default_subpartitions
(
handler
*
file
,
ulonglong
max_rows
);
char
*
create_default_partition_names
(
uint
part_no
,
uint
no_parts
,
uint
start_no
);
char
*
create_subpartition_name
(
uint
subpart_no
,
const
char
*
part_name
);
bool
has_unique_name
(
partition_element
*
element
);
};
...
...
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