~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-10 12:49:38 UTC
  • mto: This revision was merged to the branch mainline in revision 2233.
  • Revision ID: olafvdspek@gmail.com-20110310124938-gwhzx3pq8ueg682n
Session::lex()

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
    return &main_lex;
227
227
  }
228
228
 
 
229
  const LEX& lex() const
 
230
  {
 
231
    return main_lex;
 
232
  }
 
233
 
 
234
  LEX& lex()
 
235
  {
 
236
    return main_lex;
 
237
  }
 
238
 
229
239
  enum_sql_command getSqlCommand() const
230
240
  {
231
 
    return getLex()->sql_command;
 
241
    return lex().sql_command;
232
242
  }
233
243
 
234
244
  /** query associated with this statement */
1496
1506
 
1497
1507
  inline bool add_item_to_list(Item *item)
1498
1508
  {
1499
 
    return getLex()->current_select->add_item_to_list(this, item);
 
1509
    return lex().current_select->add_item_to_list(this, item);
1500
1510
  }
1501
1511
 
1502
1512
  inline bool add_value_to_list(Item *value)
1503
1513
  {
1504
 
    return getLex()->value_list.push_back(value);
 
1514
    return lex().value_list.push_back(value);
1505
1515
  }
1506
1516
 
1507
1517
  inline bool add_order_to_list(Item *item, bool asc)
1508
1518
  {
1509
 
    return getLex()->current_select->add_order_to_list(this, item, asc);
 
1519
    return lex().current_select->add_order_to_list(this, item, asc);
1510
1520
  }
1511
1521
 
1512
1522
  inline bool add_group_to_list(Item *item, bool asc)
1513
1523
  {
1514
 
    return getLex()->current_select->add_group_to_list(this, item, asc);
 
1524
    return lex().current_select->add_group_to_list(this, item, asc);
1515
1525
  }
1516
1526
  void refresh_status();
1517
1527
  user_var_entry *getVariable(LEX_STRING &name, bool create_if_not_exists);