My Project
sql_test.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_TEST_INCLUDED
00017 #define SQL_TEST_INCLUDED
00018 
00019 #include "mysqld.h"
00020 #include "sql_select.h"
00021 
00022 class JOIN;
00023 struct TABLE_LIST;
00024 typedef class st_select_lex SELECT_LEX;
00025 typedef struct st_sort_field SORT_FIELD;
00026 
00027 extern const char *lock_descriptions[TL_WRITE_ONLY + 1];
00028 
00029 #ifndef DBUG_OFF
00030 void print_where(Item *cond,const char *info, enum_query_type query_type);
00031 void TEST_join(JOIN *join);
00032 void print_plan(JOIN* join,uint idx, double record_count, double read_time,
00033                 double current_read_time, const char *info);
00034 void dump_TABLE_LIST_graph(SELECT_LEX *select_lex, TABLE_LIST* tl);
00035 #endif
00036 void mysql_print_status();
00037 class Opt_trace_context;
00038 void print_keyuse_array(Opt_trace_context *trace,
00039                         const Key_use_array *keyuse_array);
00040 #endif /* SQL_TEST_INCLUDED */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines