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
79a66a97
Commit
79a66a97
authored
Oct 06, 2008
by
Alexey Botchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#38083 Error-causing row inserted into partitioned table despite error
parent
0b097b77
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
161 additions
and
127 deletions
+161
-127
sql/opt_range.cc
sql/opt_range.cc
+5
-3
sql/partition_info.h
sql/partition_info.h
+3
-2
sql/sql_partition.cc
sql/sql_partition.cc
+153
-122
No files found.
sql/opt_range.cc
View file @
79a66a97
...
...
@@ -3145,10 +3145,12 @@ int find_used_partitions(PART_PRUNE_PARAM *ppar, SEL_ARG *key_tree)
ppar
->
subpart_fields
););
/* Find the subpartition (it's HASH/KEY so we always have one) */
partition_info
*
part_info
=
ppar
->
part_info
;
uint32
subpart_id
=
part_info
->
get_subpartition_id
(
part_info
);
uint32
part_id
,
subpart_id
;
if
(
part_info
->
get_subpartition_id
(
part_info
,
&
subpart_id
))
return
0
;
/* Mark this partition as used in each subpartition. */
uint32
part_id
;
while
((
part_id
=
ppar
->
part_iter
.
get_next
(
&
ppar
->
part_iter
))
!=
NOT_A_PARTITION_ID
)
{
...
...
sql/partition_info.h
View file @
79a66a97
...
...
@@ -25,8 +25,9 @@ class partition_info;
typedef
int
(
*
get_part_id_func
)(
partition_info
*
part_info
,
uint32
*
part_id
,
longlong
*
func_value
);
typedef
uint32
(
*
get_subpart_id_func
)(
partition_info
*
part_info
);
typedef
int
(
*
get_subpart_id_func
)(
partition_info
*
part_info
,
uint32
*
part_id
);
struct
st_ddl_log_memory_entry
;
class
partition_info
:
public
Sql_alloc
...
...
sql/sql_partition.cc
View file @
79a66a97
This diff is collapsed.
Click to expand it.
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