From 05194745c994784c66a2b543218e47ebfac5f836 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 4 Nov 2003 20:23:39 +0200 Subject: fixed: ==2761== Thread 10: ==2761== Conditional jump or move depends on uninitialised value(s) ==2761== at 0x818F580: make_join_statistics(JOIN*, st_table_list*, Item*, st_dynamic_array*) (sql_select.cc:1850) ==2761== by 0x818B705: JOIN::optimize() (sql_select.cc:578) sql/sql_select.cc: optimize field should be initialized in case of fulltext index --- sql/sql_select.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql') diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 091bde26b0a..90eb8c06660 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -2407,6 +2407,7 @@ add_ft_keys(DYNAMIC_ARRAY *keyuse_array, keyuse.key = cond_func->key; keyuse.keypart= FT_KEYPART; keyuse.used_tables=cond_func->key_item()->used_tables(); + keyuse.optimize= 0; VOID(insert_dynamic(keyuse_array,(gptr) &keyuse)); } -- cgit v1.2.1 From c1da7745ce8f875fd218eef8cfe465ffe19c0d36 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 4 Nov 2003 20:50:01 +0200 Subject: fixed: ==2761== Thread 10: ==2761== Conditional jump or move depends on uninitialised value(s) ==2761== at 0x81913BB: find_best(JOIN*, unsigned long long, unsigned, double, double) (sql_select.cc:2689) ==2761== by 0x8191030: find_best_combination(JOIN*, unsigned long long) (sql_select.cc:2599) sql/sql_select.cc: keypart_map fiels should be initialized in case of fulltext index --- sql/sql_select.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'sql') diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 90eb8c06660..c7f9de2ef6d 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -2408,6 +2408,7 @@ add_ft_keys(DYNAMIC_ARRAY *keyuse_array, keyuse.keypart= FT_KEYPART; keyuse.used_tables=cond_func->key_item()->used_tables(); keyuse.optimize= 0; + keyuse.keypart_map= 0; VOID(insert_dynamic(keyuse_array,(gptr) &keyuse)); } -- cgit v1.2.1