~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Marisa Plumb
  • Date: 2011-03-17 16:32:26 UTC
  • mfrom: (2239 drizzle)
  • mto: This revision was merged to the branch mainline in revision 2283.
  • Revision ID: marisa.plumb@gmail.com-20110317163226-x60oefuq1vnf0qx2
merging

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
#include <drizzled/file_exchange.h>
42
42
#include <drizzled/ha_data.h>
43
43
#include <drizzled/identifier.h>
44
 
#include <drizzled/lex_column.h>
45
44
#include <drizzled/named_savepoint.h>
46
45
#include <drizzled/open_tables_state.h>
47
46
#include <drizzled/plugin.h>
86
85
}
87
86
 
88
87
namespace internal { struct st_my_thread_var; }
89
 
namespace table { class Placeholder; }
 
88
 
 
89
namespace table 
 
90
 
91
  class Placeholder; 
 
92
  class Singular; 
 
93
}
90
94
 
91
95
class CopyField;
92
96
class DrizzleXid;
204
208
  }
205
209
 
206
210
public:
207
 
  const LEX& lex() const
208
 
  {
209
 
    return main_lex;
210
 
  }
211
 
 
212
 
  LEX& lex()
213
 
  {
214
 
    return main_lex;
215
 
  }
216
 
 
217
 
  enum_sql_command getSqlCommand() const
218
 
  {
219
 
    return lex().sql_command;
220
 
  }
 
211
  const LEX& lex() const;
 
212
  LEX& lex();
 
213
  enum_sql_command getSqlCommand() const;
221
214
 
222
215
  /** query associated with this statement */
223
216
  typedef boost::shared_ptr<const std::string> QueryString;
1386
1379
  /** The current internal error handler for this thread, or NULL. */
1387
1380
  Internal_error_handler *m_internal_handler;
1388
1381
  /**
1389
 
    The lex to hold the parsed tree of conventional (non-prepared) queries.
1390
 
    Whereas for prepared and stored procedure statements we use an own lex
1391
 
    instance for each new query, for conventional statements we reuse
1392
 
    the same lex. (@see mysql_parse for details).
1393
 
  */
1394
 
  LEX main_lex;
1395
 
  /**
1396
1382
    This memory root is used for two purposes:
1397
1383
    - for conventional queries, to allocate structures stored in main_lex
1398
1384
    during parsing, and allocate runtime data (execution plan, etc.)