summaryrefslogtreecommitdiff
path: root/sql/sql_partition.cc
diff options
context:
space:
mode:
authorGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-05-10 17:20:26 +0300
committerGeorgi Kodinov <Georgi.Kodinov@Oracle.com>2011-05-10 17:20:26 +0300
commitc4c808d6066f8754d5504eeca0449d42ac95f8b5 (patch)
treededfe71cc0ebd78c6ac5ec49fb9a366ff76a4bf1 /sql/sql_partition.cc
parent7bc16d29747738c4436e10d5cb27738466079906 (diff)
parent5ebd07b0f6e3e6a37b8847a0e05753edc5025f59 (diff)
downloadmariadb-git-c4c808d6066f8754d5504eeca0449d42ac95f8b5.tar.gz
weave merge of mysql-5.5->mysql-5.5-security
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r--sql/sql_partition.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index b9bbec63e7d..52d6757b03a 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -3980,7 +3980,7 @@ void get_partition_set(const TABLE *table, uchar *buf, const uint index,
part_spec->start_part= 0;
part_spec->end_part= num_parts - 1;
if ((index < MAX_KEY) &&
- key_spec->flag == (uint)HA_READ_KEY_EXACT &&
+ key_spec && key_spec->flag == (uint)HA_READ_KEY_EXACT &&
part_info->some_fields_in_PF.is_set(index))
{
key_info= table->key_info+index;