~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: mordred
  • Date: 2008-11-03 19:19:36 UTC
  • mfrom: (574.1.3 devel)
  • mto: (575.1.1 devel)
  • mto: This revision was merged to the branch mainline in revision 575.
  • Revision ID: mordred@opensolaris-20081103191936-6i5pdxgyocf16lj9
Merged in from devel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
692
692
 
693
693
 
694
694
/*
695
 
  MYSQLlex remember the following states from the following MYSQLlex()
 
695
  DRIZZLElex remember the following states from the following DRIZZLElex()
696
696
 
697
697
  - MY_LEX_EOQ                  Found end of query
698
698
  - MY_LEX_OPERATOR_OR_IDENT    Last state was an ident, text or number
699
699
                                (which can't be followed by a signed number)
700
700
*/
701
701
 
702
 
int MYSQLlex(void *arg, void *yysession)
 
702
int DRIZZLElex(void *arg, void *yysession)
703
703
{
704
704
  Session *session= (Session *)yysession;
705
705
  Lex_input_stream *lip= session->m_lip;
2039
2039
  @brief Restore the LEX and Session in case of a parse error.
2040
2040
 
2041
2041
  This is a clean up call that is invoked by the Bison generated
2042
 
  parser before returning an error from MYSQLparse. If your
 
2042
  parser before returning an error from DRIZZLEparse. If your
2043
2043
  semantic actions manipulate with the global thread state (which
2044
2044
  is a very bad practice and should not normally be employed) and
2045
2045
  need a clean-up in case of error, and you can not use %destructor