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
66ea81cd
Commit
66ea81cd
authored
Oct 01, 2009
by
Mikael Ronstrom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#47752, missed to sort values in list partitioning
parent
dc97402c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
sql/partition_info.cc
sql/partition_info.cc
+4
-3
sql/sql_partition.cc
sql/sql_partition.cc
+2
-2
No files found.
sql/partition_info.cc
View file @
66ea81cd
...
...
@@ -993,15 +993,16 @@ bool partition_info::check_list_constants(THD *thd)
}
}
while
(
++
i
<
num_parts
);
}
if
(
fixed
&&
num_list_values
)
DBUG_ASSERT
(
fixed
);
if
(
num_list_values
)
{
bool
first
=
TRUE
;
/*
list_array and list_col_array are unions, so this works for both
variants of LIST partitioning.
*/
my_qsort
((
void
*
)
list_array
,
num_list_values
,
size
of
(
LIST_PART_ENTRY
)
,
&
list_part_cmp
);
my_qsort
((
void
*
)
list_array
,
num_list_values
,
size
_entries
,
compare_func
);
i
=
0
;
LINT_INIT
(
prev_value
);
...
...
sql/sql_partition.cc
View file @
66ea81cd
...
...
@@ -1030,8 +1030,6 @@ static bool fix_fields_part_func(THD *thd, Item* func_expr, TABLE *table,
if
((
!
is_sub_part
)
&&
(
error
=
check_signed_flag
(
part_info
)))
goto
end
;
result
=
set_up_field_array
(
table
,
is_sub_part
);
if
(
!
is_sub_part
)
part_info
->
fixed
=
TRUE
;
end:
table
->
get_fields_in_item_tree
=
FALSE
;
table
->
map
=
0
;
//Restore old value
...
...
@@ -1667,6 +1665,7 @@ bool fix_partition_func(THD *thd, TABLE *table,
}
part_info
->
part_result_type
=
INT_RESULT
;
}
part_info
->
fixed
=
TRUE
;
}
else
{
...
...
@@ -1683,6 +1682,7 @@ bool fix_partition_func(THD *thd, TABLE *table,
table
,
FALSE
)))
goto
end
;
}
part_info
->
fixed
=
TRUE
;
if
(
part_info
->
part_type
==
RANGE_PARTITION
)
{
error_str
=
partition_keywords
[
PKW_RANGE
].
str
;
...
...
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