My Project
sql_derived.h
00001 /* Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00015 
00016 #ifndef SQL_DERIVED_INCLUDED
00017 #define SQL_DERIVED_INCLUDED
00018 
00019 struct TABLE_LIST;
00020 class THD;
00021 struct LEX;
00022 
00023 bool mysql_handle_derived(LEX *lex, bool (*processor)(THD *thd, LEX *lex,
00024                                                       TABLE_LIST *table));
00025 bool mysql_handle_single_derived(LEX *lex, TABLE_LIST *derived,
00026                                  bool (*processor)(THD*, LEX*, TABLE_LIST*));
00027 bool mysql_derived_prepare(THD *thd, LEX *lex, TABLE_LIST *t);
00028 bool mysql_derived_optimize(THD *thd, LEX *lex, TABLE_LIST *t);
00029 bool mysql_derived_create(THD *thd, LEX *lex, TABLE_LIST *t);
00030 bool mysql_derived_materialize(THD *thd, LEX *lex, TABLE_LIST *t);
00041 bool mysql_derived_cleanup(THD *thd, LEX *lex, TABLE_LIST *derived);
00042 
00043 #endif /* SQL_DERIVED_INCLUDED */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines