diff options
author | Neeraj Bisht <neeraj.x.bisht@oracle.com> | 2013-01-29 10:06:31 +0530 |
---|---|---|
committer | Neeraj Bisht <neeraj.x.bisht@oracle.com> | 2013-01-29 10:06:31 +0530 |
commit | 5e6f6400d6d00d585eb5a7d8c6927dc748c4ff4f (patch) | |
tree | 176cb35e7fb66c4730a295370b2d309b5cdd5318 /sql/opt_range.cc | |
parent | aa35791781df004c2a38d726bca31c9022f58ed9 (diff) | |
parent | 516a0ad46448cd7f622808f8fd07d97191cbb131 (diff) | |
download | mariadb-git-5e6f6400d6d00d585eb5a7d8c6927dc748c4ff4f.tar.gz |
Bug#16208709 - CRASH IN GET_SEL_ARG_FOR_KEYPART ON SELECT DISTINCT
ON COL WITH COMPOSITE INDEX
This problem is caused by the patch for the bug#11751794.
While checking for the keypart covering non grouping attribute. we are not
checking whether the root node of the SEL_ARG* tree for the index have any
cvalue or not.
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 8481e16082b..c078d9ac85b 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -10085,6 +10085,8 @@ get_sel_arg_for_keypart(Field *nga_field, SEL_ARG *keypart_tree, SEL_ARG **cur_range) { + if(keypart_tree == NULL) + return false; if(keypart_tree->field->eq(nga_field)) { /* |