~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/statement/select.cc

  • Committer: Lee Bieber
  • Date: 2011-03-16 16:39:32 UTC
  • mfrom: (2239.1.11 includes)
  • mto: This revision was merged to the branch mainline in revision 2240.
  • Revision ID: kalebral@gmail.com-20110316163932-ckt3uulj4pimqs8b
Merge Olaf - refactor includes

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#include <config.h>
22
22
#include <drizzled/session.h>
23
23
#include <drizzled/statement/select.h>
24
 
 
25
 
namespace drizzled
26
 
{
27
 
 
28
 
namespace statement
29
 
{
 
24
#include <drizzled/sql_lex.h>
 
25
 
 
26
namespace drizzled {
 
27
namespace statement {
30
28
 
31
29
Select::Select(Session *in_session) :
32
30
  Statement(in_session)
36
34
 
37
35
bool Select::execute()
38
36
{
39
 
  TableList *all_tables= lex().query_tables;
40
37
  session().status_var.last_query_cost= 0.0;
41
 
  bool res= execute_sqlcom_select(&session(), all_tables);
42
 
 
43
 
  return res;
 
38
  return execute_sqlcom_select(&session(), lex().query_tables);
44
39
}
45
40
 
46
41
} /* namespace statement */