~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_lex.cc

  • Committer: Brian Aker
  • Date: 2008-07-29 18:10:06 UTC
  • Revision ID: brian@tangent.org-20080729181006-k3pgvafenthl8c3t
Final bit of NCHAR removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
830
830
 
831
831
      return((int) c);
832
832
 
833
 
    case MY_LEX_IDENT_OR_NCHAR:
834
 
      if (lip->yyPeek() != '\'')
835
 
      {
836
 
        state= MY_LEX_IDENT;
837
 
        break;
838
 
      }
839
 
      /* Found N'string' */
840
 
      lip->yySkip();                         // Skip '
841
 
      if (!(yylval->lex_str.str = get_text(lip, 2, 1)))
842
 
      {
843
 
        state= MY_LEX_CHAR;             // Read char by char
844
 
        break;
845
 
      }
846
 
      yylval->lex_str.length= lip->yytoklen;
847
 
      lex->text_string_is_7bit= (lip->tok_bitmap & 0x80) ? 0 : 1;
848
 
      return(NCHAR_STRING);
849
 
 
850
833
    case MY_LEX_IDENT_OR_HEX:
851
834
      if (lip->yyPeek() == '\'')
852
835
      {                                 // Found x'hex-number'