~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/check.cc

  • Committer: Mark Atwood
  • Date: 2011-06-24 11:45:17 UTC
  • mfrom: (2318.6.64 rf)
  • Revision ID: me@mark.atwood.name-20110624114517-1mq8no6jlp2nrg7m
mergeĀ lp:~olafvdspek/drizzle/refactor15

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