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
19b8f1ee
Commit
19b8f1ee
authored
Aug 05, 2013
by
Igor Babaev
Browse files
Options
Browse Files
Download
Plain Diff
Merge.
parents
8067ced9
50741037
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2745 additions
and
1 deletion
+2745
-1
mysql-test/r/partition_explicit_prune.result
mysql-test/r/partition_explicit_prune.result
+1865
-0
mysql-test/t/partition_explicit_prune.test
mysql-test/t/partition_explicit_prune.test
+860
-0
sql/opt_range.cc
sql/opt_range.cc
+4
-1
sql/sql_select.cc
sql/sql_select.cc
+16
-0
No files found.
mysql-test/r/partition_explicit_prune.result
0 → 100644
View file @
19b8f1ee
This diff is collapsed.
Click to expand it.
mysql-test/t/partition_explicit_prune.test
0 → 100644
View file @
19b8f1ee
This diff is collapsed.
Click to expand it.
sql/opt_range.cc
View file @
19b8f1ee
...
@@ -3969,7 +3969,6 @@ bool prune_partitions(THD *thd, TABLE *table, Item *pprune_cond)
...
@@ -3969,7 +3969,6 @@ bool prune_partitions(THD *thd, TABLE *table, Item *pprune_cond)
thd
->
no_errors
=
0
;
thd
->
no_errors
=
0
;
thd
->
mem_root
=
range_par
->
old_root
;
thd
->
mem_root
=
range_par
->
old_root
;
free_root
(
&
alloc
,
MYF
(
0
));
// Return memory & allocator
free_root
(
&
alloc
,
MYF
(
0
));
// Return memory & allocator
DBUG_RETURN
(
retval
);
/*
/*
Must be a subset of the locked partitions.
Must be a subset of the locked partitions.
lock_partitions contains the partitions marked by explicit partition
lock_partitions contains the partitions marked by explicit partition
...
@@ -3993,7 +3992,11 @@ bool prune_partitions(THD *thd, TABLE *table, Item *pprune_cond)
...
@@ -3993,7 +3992,11 @@ bool prune_partitions(THD *thd, TABLE *table, Item *pprune_cond)
&
prune_param
.
part_info
->
read_partitions
);
&
prune_param
.
part_info
->
read_partitions
);
}
}
if
(
bitmap_is_clear_all
(
&
(
prune_param
.
part_info
->
read_partitions
)))
if
(
bitmap_is_clear_all
(
&
(
prune_param
.
part_info
->
read_partitions
)))
{
table
->
all_partitions_pruned_away
=
true
;
table
->
all_partitions_pruned_away
=
true
;
retval
=
TRUE
;
}
DBUG_RETURN
(
retval
);
}
}
...
...
sql/sql_select.cc
View file @
19b8f1ee
...
@@ -23161,6 +23161,22 @@ void TABLE_LIST::print(THD *thd, table_map eliminated_tables, String *str,
...
@@ -23161,6 +23161,22 @@ void TABLE_LIST::print(THD *thd, table_map eliminated_tables, String *str,
append_identifier
(
thd
,
str
,
table_name
,
table_name_length
);
append_identifier
(
thd
,
str
,
table_name
,
table_name_length
);
cmp_name
=
table_name
;
cmp_name
=
table_name
;
}
}
#ifdef WITH_PARTITION_STORAGE_ENGINE
if
(
partition_names
&&
partition_names
->
elements
)
{
int
i
,
num_parts
=
partition_names
->
elements
;
List_iterator
<
String
>
name_it
(
*
(
partition_names
));
str
->
append
(
STRING_WITH_LEN
(
" PARTITION ("
));
for
(
i
=
1
;
i
<=
num_parts
;
i
++
)
{
String
*
name
=
name_it
++
;
append_identifier
(
thd
,
str
,
name
->
c_ptr
(),
name
->
length
());
if
(
i
!=
num_parts
)
str
->
append
(
','
);
}
str
->
append
(
')'
);
}
#endif
/* WITH_PARTITION_STORAGE_ENGINE */
}
}
if
(
my_strcasecmp
(
table_alias_charset
,
cmp_name
,
alias
))
if
(
my_strcasecmp
(
table_alias_charset
,
cmp_name
,
alias
))
{
{
...
...
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