1 /* Copyright (c) 2006, 2011, Oracle and/or its affiliates. All rights reserved.
2 
3    This program is free software; you can redistribute it and/or modify
4    it under the terms of the GNU General Public License, version 2.0,
5    as published by the Free Software Foundation.
6 
7    This program is also distributed with certain software (including
8    but not limited to OpenSSL) that is licensed under separate terms,
9    as designated in a particular file or component or in included license
10    documentation.  The authors of MySQL hereby grant you an additional
11    permission to link the program and your derivative works with the
12    separately licensed software that they have included with MySQL.
13 
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License, version 2.0, for more details.
18 
19    You should have received a copy of the GNU General Public License
20    along with this program; if not, write to the Free Software
21    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
22 
23 #ifndef SQL_TEST_INCLUDED
24 #define SQL_TEST_INCLUDED
25 
26 #include "mysqld.h"
27 #include "sql_select.h"
28 
29 class JOIN;
30 struct TABLE_LIST;
31 typedef class st_select_lex SELECT_LEX;
32 typedef struct st_sort_field SORT_FIELD;
33 
34 extern const char *lock_descriptions[TL_WRITE_ONLY + 1];
35 
36 #ifndef DBUG_OFF
37 void print_where(Item *cond,const char *info, enum_query_type query_type);
38 void TEST_join(JOIN *join);
39 void print_plan(JOIN* join,uint idx, double record_count, double read_time,
40                 double current_read_time, const char *info);
41 void dump_TABLE_LIST_graph(SELECT_LEX *select_lex, TABLE_LIST* tl);
42 #endif
43 void mysql_print_status();
44 class Opt_trace_context;
45 void print_keyuse_array(Opt_trace_context *trace,
46                         const Key_use_array *keyuse_array);
47 #endif /* SQL_TEST_INCLUDED */
48