diff options
author | unknown <monty@hundin.mysql.fi> | 2002-01-31 04:36:58 +0200 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-01-31 04:36:58 +0200 |
commit | 83c83a0223664b2937e9522afb47e7c78e6b425f (patch) | |
tree | f5fa2405fe86664ded2345a4330fe4b8a31e8666 /sql/opt_sum.cc | |
parent | 85278245af45fc301dc7940bec9a3434003285a6 (diff) | |
download | mariadb-git-83c83a0223664b2937e9522afb47e7c78e6b425f.tar.gz |
Fixes for new getopt
Bug fix when using --no-deaults
Sets ref_length to right value (faster rnd_pos() handling in InnoDB).
Fixed problem with multi-table-delete and InnoDB
Fixed problem with truncate table, which required a COMMIT before.
Fixed multi-table-delete bug with InnoDB.
Remove not used index from EXPLAIN
Docs/manual.texi:
ChangeLog
include/my_getopt.h:
Removed compiler warnings
myisam/myisamchk.c:
Fixes for new getopt
mysql-test/r/explain.result:
Updated test results
mysql-test/r/innodb.result:
Updated test results
mysql-test/r/join.result:
Updated test results
mysql-test/t/innodb.test:
Updated test results
mysys/default.c:
Bug fix when using --no-defaults
mysys/my_getopt.c:
Fixes for new getopt
sql/ha_innodb.cc:
Sets ref_length to right value (faster rnd_pos() handling).
Fixed problem with multi-table-delete.
Fixed problem with truncate table, which required a COMMIT before.
sql/opt_sum.cc:
Remove not used index from EXPLAIN
sql/sql_cache.cc:
Fixed core dump bug when not using query cache
sql/sql_select.cc:
Remove not used index from EXPLAIN
Diffstat (limited to 'sql/opt_sum.cc')
-rw-r--r-- | sql/opt_sum.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/opt_sum.cc b/sql/opt_sum.cc index 69fc5aa88ff..31611798064 100644 --- a/sql/opt_sum.cc +++ b/sql/opt_sum.cc @@ -299,7 +299,8 @@ static bool find_range_key(TABLE_REF *ref, Field* field, COND *cond) uint idx=0; /* Check if some key has field as first key part */ - if (field->key_start && (! cond || ! (cond->used_tables() & table->map))) + if ((field->key_start & field->table->keys_in_use_for_query) &&A + (! cond || ! (cond->used_tables() & table->map))) { for (key_map key=field->key_start ; !(key & 1) ; idx++) key>>=1; |