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
6df933a8
Commit
6df933a8
authored
Sep 26, 2006
by
mikael/pappa@dator5.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#18198
Fixed interface to check_partition_func_processor
parent
58ee682e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
15 deletions
+7
-15
sql/partition_info.cc
sql/partition_info.cc
+7
-15
No files found.
sql/partition_info.cc
View file @
6df933a8
...
...
@@ -722,25 +722,17 @@ bool partition_info::check_partition_info(THD *thd, handlerton **eng_type,
if
(
check_partition_function
)
{
int
part_expression_ok
=
1
;
int
pf_collation_allowed
=
1
;
int
spf_collation_allowed
=
1
;
int
err
=
0
;
if
(
part_type
!=
HASH_PARTITION
||
!
list_of_part_fields
)
{
part_expr
->
walk
(
&
Item
::
check_partition_func_processor
,
0
,
(
byte
*
)(
&
part_expression_ok
));
pf_collation_allowed
=
part_expression_ok
;
part_expression_ok
=
1
;
if
(
is_sub_partitioned
()
&&
!
list_of_subpart_fields
)
{
subpart_expr
->
walk
(
&
Item
::
check_partition_func_processor
,
0
,
(
byte
*
)(
&
part_expression_ok
));
}
spf_collation_allowed
=
part_expression_ok
;
err
=
part_expr
->
walk
(
&
Item
::
check_partition_func_processor
,
0
,
NULL
);
if
(
!
err
&&
is_sub_partitioned
()
&&
!
list_of_subpart_fields
)
err
=
subpart_expr
->
walk
(
&
Item
::
check_partition_func_processor
,
0
,
NULL
);
}
if
(
!
pf_collation_allowed
||
!
spf_collation_allowed
)
if
(
err
)
{
my_error
(
ER_PARTITION_FUNCTION_IS_NOT_ALLOWED
,
MYF
(
0
));
goto
end
;
...
...
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