~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/statement/check.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

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
{
33
32
  TableList *first_table= (TableList *) lex().select_lex.table_list.first;
34
33
  TableList *all_tables= lex().query_tables;
35
34
  assert(first_table == all_tables && first_table != 0);
36
 
  Select_Lex *select_lex= &lex().select_lex;
37
 
  bool res= check_table(&session(), first_table, &check_opt);
38
 
  select_lex->table_list.first= (unsigned char*) first_table;
 
35
  bool res= check_table(&session(), first_table);
 
36
  lex().select_lex.table_list.first= (unsigned char*) first_table;
39
37
  lex().query_tables=all_tables;
40
 
 
41
38
  return res;
42
39
}
43
40
 
44
41
} /* namespace drizzled */
45