diff options
author | Igor Babaev <igor@askmonty.org> | 2011-06-04 19:56:06 -0700 |
---|---|---|
committer | Igor Babaev <igor@askmonty.org> | 2011-06-04 19:56:06 -0700 |
commit | f03a3ee54fb8b5aeeba590677f48b54a57ab45cf (patch) | |
tree | afb1235c5417019a563b1c1d64443f3b890d05df /sql/sp_head.cc | |
parent | f0f2ec3086000a22e83ce9ca33d59a3347784e0c (diff) | |
parent | 35c35858f859f23c23a414cdb21fdfe39d5de11c (diff) | |
download | mariadb-git-f03a3ee54fb8b5aeeba590677f48b54a57ab45cf.tar.gz |
Merged the code of mwl 106 into the latest 5.3 with mwl 90 pushed.
Resolved all conflicts and failures.
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index 8f9ff5512c5..bd2dcfd8653 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -2835,6 +2835,9 @@ int sp_instr::exec_open_and_lock_tables(THD *thd, TABLE_LIST *tables) result= -1; else result= 0; + /* Prepare all derived tables/views to catch possible errors. */ + if (!result) + result= mysql_handle_derived(thd->lex, DT_PREPARE) ? -1 : 0; return result; } |