summaryrefslogtreecommitdiff
path: root/sql/sql_derived.cc
diff options
context:
space:
mode:
authorunknown <bell@sanja.is.com.ua>2005-03-31 10:39:48 +0300
committerunknown <bell@sanja.is.com.ua>2005-03-31 10:39:48 +0300
commit8a898a0b72ad14b87608c84f6b775eb586a070a2 (patch)
treef46f9a882d5aee1bf10b26d0a45bd5280198b309 /sql/sql_derived.cc
parent3a44dcd1a3b8b9e23200c3527bb43850ffdb8ece (diff)
parent30c85129548f7d8267fab809a723672161c6fce9 (diff)
downloadmariadb-git-8a898a0b72ad14b87608c84f6b775eb586a070a2.tar.gz
merge 4.1->5.0
mysql-test/r/group_by.result: Auto merged mysql-test/r/metadata.result: Auto merged mysql-test/r/union.result: Auto merged mysql-test/t/union.test: Auto merged sql/item.h: Auto merged sql/sql_parse.cc: Auto merged sql/sql_select.cc: Auto merged support-files/mysql.server.sh: Auto merged
Diffstat (limited to 'sql/sql_derived.cc')
-rw-r--r--sql/sql_derived.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc
index eb7b3e8a319..115974c3b05 100644
--- a/sql/sql_derived.cc
+++ b/sql/sql_derived.cc
@@ -115,7 +115,7 @@ int mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *orig_table_list)
DBUG_RETURN(1); // out of memory
// st_select_lex_unit::prepare correctly work for single select
- if ((res= unit->prepare(thd, derived_result, 0)))
+ if ((res= unit->prepare(thd, derived_result, 0, org_table_list->alias)))
goto exit;