diff options
author | unknown <sergefp@mysql.com> | 2005-12-27 15:04:35 +0300 |
---|---|---|
committer | unknown <sergefp@mysql.com> | 2005-12-27 15:04:35 +0300 |
commit | e6bff9a606691c068cc173bc25f8539517e46925 (patch) | |
tree | 15431e9fa1b562f790f150cc3942aa05e3384174 /sql/sql_class.cc | |
parent | 3862ee76fd784f0ddca5b3ce255b8ca8478b85f9 (diff) | |
download | mariadb-git-e6bff9a606691c068cc173bc25f8539517e46925.tar.gz |
WL#2985 "Partition pruning", postreview fixes: Small code fixes and better comments
mysql-test/r/partition.result:
Added testcase for BUG#15819
mysql-test/t/partition.test:
Added testcase for BUG#15819
sql/item.h:
WL#2985 "Partition pruning", postreview fixes: better comments
sql/item_timefunc.cc:
WL#2985 "Partition pruning", postreview fixes: better comments
sql/opt_range.cc:
WL#2985 "Partition pruning", postreview fixes:
- better comments, local function renames
- Made SEL_ARG::is_singlepoint() to correctly handle NULL edge values.
- fix uninitialized variable access: s/res |=/res =/
sql/sql_class.cc:
WL#2985 "Partition pruning", postreview fixes:
Set correct max. length of "partitions" column in EXPLAIN output
sql/sql_lex.h:
WL#2985 "Partition pruning", postreview fixes: better comments
sql/sql_partition.cc:
WL#2985 "Partition pruning", postreview fixes: better comments
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 7c6f61d6edc..c51a01fc215 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -758,7 +758,10 @@ int THD::send_explain_fields(select_result *result) #ifdef WITH_PARTITION_STORAGE_ENGINE if (lex->describe & DESCRIBE_PARTITIONS) { - field_list.push_back(item= new Item_empty_string("partitions", 10, cs)); + /* Maximum length of string that make_used_partitions_str() can produce */ + item= new Item_empty_string("partitions", MAX_PARTITIONS * (1 + FN_LEN), + cs); + field_list.push_back(item); item->maybe_null= 1; } #endif |