summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorhf@deer.(none) <>2003-11-08 16:43:16 +0400
committerhf@deer.(none) <>2003-11-08 16:43:16 +0400
commita88f4ea30f378234716e06d64dbc437babe79506 (patch)
treeb3bef5ea5879046bbe3d4c422f4ead884d7e33cd /sql
parent8a41df536c015a6e86085b068287e913e6b2da90 (diff)
downloadmariadb-git-a88f4ea30f378234716e06d64dbc437babe79506.tar.gz
Fix for bug #1727 ( Crash in EXPLAIN & UNION & derived)
another version of the fix. Here i removed a loop that seems to be superfluous
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_lex.cc31
1 files changed, 2 insertions, 29 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index a55b801a0fc..5fa6c088a16 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -1269,28 +1269,6 @@ bool st_select_lex::test_limit()
return(0);
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
/*
Interface method of table list creation for query
@@ -1315,13 +1293,8 @@ bool st_select_lex_unit::create_total_list(THD *thd, st_lex *lex,
bool check_derived)
{
*result= 0;
- for (SELECT_LEX_UNIT *unit= this; unit; unit= unit->next_unit())
- {
- if ((res= unit->create_total_list_n_last_return(thd, lex, &result,
- check_derived)))
- return res;
- }
- return 0;
+ res= create_total_list_n_last_return(thd, lex, &result, check_derived);
+ return res;
}
/*