summaryrefslogtreecommitdiff
path: root/sql/sql_partition.cc
diff options
context:
space:
mode:
authorMagnus Blåudd <magnus.blaudd@oracle.com>2011-05-06 10:53:42 +0200
committerMagnus Blåudd <magnus.blaudd@oracle.com>2011-05-06 10:53:42 +0200
commit5b1411702b2bff8c627c4895315f6ba1700c73c2 (patch)
tree69f51bbf5a874177e01a82d27e2450c9fb88151c /sql/sql_partition.cc
parentdb4c6f56e2f890f5854e7896a06d492d21011dbe (diff)
downloadmariadb-git-5b1411702b2bff8c627c4895315f6ba1700c73c2.tar.gz
Merge in patch for bug 12380149
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 5c2c0bb95d6..776ce01cc54 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -3979,7 +3979,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;