diff options
Diffstat (limited to 'sql/opt_subselect.h')
-rw-r--r-- | sql/opt_subselect.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/sql/opt_subselect.h b/sql/opt_subselect.h index 69f1cc33017..509fb370fd7 100644 --- a/sql/opt_subselect.h +++ b/sql/opt_subselect.h @@ -94,10 +94,14 @@ public: Loose_scan_opt(): try_loosescan(false), bound_sj_equalities(0), - quick_uses_applicable_index(FALSE), quick_max_loose_keypart(0), - best_loose_scan_key(0), best_loose_scan_records(0.0), + quick_uses_applicable_index(0), + quick_max_loose_keypart(0), + best_loose_scan_key(0), + best_loose_scan_cost(0), + best_loose_scan_records(0), best_loose_scan_start_key(NULL), - best_max_loose_keypart(0), best_ref_depend_map(0) + best_max_loose_keypart(0), + best_ref_depend_map(0) { } @@ -298,7 +302,7 @@ public: pos->table= tab; pos->ref_depend_map= best_ref_depend_map; DBUG_PRINT("info", ("Produced a LooseScan plan, key %s, %s", - tab->table->key_info[best_loose_scan_key].name, + tab->table->key_info[best_loose_scan_key].name.str, best_loose_scan_start_key? "(ref access)": "(range/index access)")); } |