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
d1b2f479
Commit
d1b2f479
authored
Apr 05, 2006
by
mikron@mikael-ronstr-ms-dator.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#18198: Too much expressiveness in partition function allowed
Fixed the error check
parent
6c20e9d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
sql/partition_info.cc
sql/partition_info.cc
+7
-2
No files found.
sql/partition_info.cc
View file @
d1b2f479
...
...
@@ -658,8 +658,13 @@ bool partition_info::check_partition_info(handlerton **eng_type,
bool
part_expression_ok
=
TRUE
;
DBUG_ENTER
(
"partition_info::check_partition_info"
);
if
(
part_expr
->
walk
(
Item
::
check_partition_func_processor
,
(
byte
*
)
&
part_expression_ok
))
if
(
part_type
!=
HASH_PARTITION
||
!
list_of_part_fields
)
part_expr
->
walk
(
Item
::
check_partition_func_processor
,
(
byte
*
)
&
part_expression_ok
);
if
(
is_sub_partitioned
()
&&
!
list_of_subpart_fields
)
subpart_expr
->
walk
(
Item
::
check_partition_func_processor
,
(
byte
*
)
&
part_expression_ok
);
if
(
!
part_expression_ok
)
{
my_error
(
ER_PARTITION_FUNC_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