diff options
author | stewart@willster.(none) <> | 2006-09-25 14:48:39 +1000 |
---|---|---|
committer | stewart@willster.(none) <> | 2006-09-25 14:48:39 +1000 |
commit | 3ecc09e0e4671431d7caeab1760faccf0636fe41 (patch) | |
tree | df17b5bc9833c6fc8989e30886964e357263bca1 /sql/opt_sum.cc | |
parent | 0f3874dffacf187614d43c837eca882d5387f82b (diff) | |
parent | 878416e05497ce366a713ff44b4498da842e7688 (diff) | |
download | mariadb-git-3ecc09e0e4671431d7caeab1760faccf0636fe41.tar.gz |
Merge willster.(none):/home/stewart/Documents/MySQL/4.1/main
into willster.(none):/home/stewart/Documents/MySQL/4.1/bug19914-mk2
Diffstat (limited to 'sql/opt_sum.cc')
-rw-r--r-- | sql/opt_sum.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/opt_sum.cc b/sql/opt_sum.cc index 64b01ce002a..412fc0dc037 100644 --- a/sql/opt_sum.cc +++ b/sql/opt_sum.cc @@ -187,7 +187,7 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds) Type of range for the key part for this field will be returned in range_fl. */ - if ((outer_tables & table->map) || + if (table->file->inited || (outer_tables & table->map) || !find_key_for_maxmin(0, &ref, item_field->field, conds, &range_fl, &prefix_len)) { @@ -274,7 +274,7 @@ int opt_sum_query(TABLE_LIST *tables, List<Item> &all_fields,COND *conds) Type of range for the key part for this field will be returned in range_fl. */ - if ((outer_tables & table->map) || + if (table->file->inited || (outer_tables & table->map) || !find_key_for_maxmin(1, &ref, item_field->field, conds, &range_fl, &prefix_len)) { |