~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/check.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-23 10:02:30 UTC
  • mto: This revision was merged to the branch mainline in revision 2348.
  • Revision ID: olafvdspek@gmail.com-20110623100230-w8vx1so32tkxsh6f
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
#include <drizzled/sql_table.h>
26
26
#include <drizzled/sql_lex.h>
27
27
 
28
 
namespace drizzled
29
 
{
 
28
namespace drizzled {
30
29
 
31
30
bool statement::Check::execute()
32
31
{
34
33
  TableList *all_tables= lex().query_tables;
35
34
  assert(first_table == all_tables && first_table != 0);
36
35
  Select_Lex *select_lex= &lex().select_lex;
37
 
  bool res= check_table(&session(), first_table, &check_opt);
 
36
  bool res= check_table(&session(), first_table);
38
37
  select_lex->table_list.first= (unsigned char*) first_table;
39
38
  lex().query_tables=all_tables;
40
 
 
41
39
  return res;
42
40
}
43
41