diff options
author | unknown <gkodinov@mysql.com> | 2006-06-02 12:04:03 +0300 |
---|---|---|
committer | unknown <gkodinov@mysql.com> | 2006-06-02 12:04:03 +0300 |
commit | 3390eaa08582d9c0d0e12db7259ae00ede9741e7 (patch) | |
tree | b8c7966928f8a15a46a157d8b3500d56a91c070e /sql/opt_range.cc | |
parent | a9824f263dcaedaabfbbc9e398eb55117f19a41f (diff) | |
download | mariadb-git-3390eaa08582d9c0d0e12db7259ae00ede9741e7.tar.gz |
Bug #4981: 4.x and 5.x produce non-optimal execution path,
3.23 regression test failure
The member SEL_ARG::min_flag was not initialized,
due to which the condition for no GEOM_FLAG in function
key_or did not choose "Range checked for each record" as
the correct access method.
mysql-test/r/select.result:
testcase for 'Range checked' access method
mysql-test/t/select.test:
testcase for 'Range checked' access method
sql/opt_range.cc:
All of the class members initialized
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 71f937f90c6..67141aab6ce 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -64,7 +64,7 @@ public: uint8 min_flag, uint8 max_flag, uint8 maybe_flag); SEL_ARG(enum Type type_arg) :elements(1),use_count(1),left(0),next_key_part(0),color(BLACK), - type(type_arg) + type(type_arg),min_flag(0) {} inline bool is_same(SEL_ARG *arg) { |