diff options
Diffstat (limited to 'sql/sql_derived.h')
-rw-r--r-- | sql/sql_derived.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/sql_derived.h b/sql/sql_derived.h index 0d4eddedf22..11a6fd4105e 100644 --- a/sql/sql_derived.h +++ b/sql/sql_derived.h @@ -26,4 +26,16 @@ bool mysql_handle_derived(LEX *lex, bool (*processor)(THD *thd, bool mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *t); bool mysql_derived_filling(THD *thd, LEX *lex, TABLE_LIST *t); +/** + Cleans up the SELECT_LEX_UNIT for the derived table (if any). + + @param thd Thread handler + @param lex LEX for this thread + @param derived TABLE_LIST for the derived table + + @retval false Success + @retval true Failure +*/ +bool mysql_derived_cleanup(THD *thd, LEX *lex, TABLE_LIST *derived); + #endif /* SQL_DERIVED_INCLUDED */ |