~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

Namespace the parser just a bit, and update our call for the type of parser
we want.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
using namespace std;
38
38
 
39
39
/* Stay outside of the namespace because otherwise bison goes nuts */
40
 
int DRIZZLElex(void *arg, void *yysession);
 
40
int base_sql_lex(void *arg, void *yysession);
41
41
 
42
42
namespace drizzled
43
43
{
601
601
 
602
602
} /* namespace drizzled */
603
603
/*
604
 
  DRIZZLElex remember the following states from the following DRIZZLElex()
 
604
  base_sql_lex remember the following states from the following sql_baselex()
605
605
 
606
606
  - MY_LEX_EOQ                  Found end of query
607
607
  - MY_LEX_OPERATOR_OR_IDENT    Last state was an ident, text or number
608
608
                                (which can't be followed by a signed number)
609
609
*/
610
 
int DRIZZLElex(void *arg, void *yysession)
 
610
int base_sql_lex(void *arg, void *yysession)
611
611
{
612
612
  drizzled::Session *session= (drizzled::Session *)yysession;
613
613
  drizzled::Lex_input_stream *lip= session->m_lip;