diff options
author | unknown <hf@deer.(none)> | 2003-11-08 16:43:16 +0400 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2003-11-08 16:43:16 +0400 |
commit | e2661bdbba9d81f00fb6ef5bdfeee343b3496ee2 (patch) | |
tree | b3bef5ea5879046bbe3d4c422f4ead884d7e33cd /sql/sql_lex.cc | |
parent | b036800ee04fb4c15f47305ba83a55d0246921f6 (diff) | |
download | mariadb-git-e2661bdbba9d81f00fb6ef5bdfeee343b3496ee2.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
mysql-test/r/derived.result:
appropriate test result added
mysql-test/t/derived.test:
test case for the bug 1727
sql/sql_lex.cc:
we don't need loop here
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r-- | sql/sql_lex.cc | 31 |
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; } /* |