~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Monty Taylor
  • Date: 2010-12-02 23:49:02 UTC
  • mto: (1975.1.1 build)
  • mto: This revision was merged to the branch mainline in revision 1976.
  • Revision ID: mordred@inaugust.com-20101202234902-jrvwwtjjbuoc3v3y
Updated memcached_stats plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6246
6246
            LEX *lex=Lex;
6247
6247
            lex->option_type= $1;
6248
6248
            lex->var_list.push_back(new set_var(lex->option_type,
6249
 
                                                find_sys_var(YYSession, "tx_isolation"),
 
6249
                                                find_sys_var("tx_isolation"),
6250
6250
                                                &null_lex_str,
6251
6251
                                                new Item_int((int32_t) $5)));
6252
6252
          }
6267
6267
internal_variable_name:
6268
6268
          ident
6269
6269
          {
6270
 
            Session *session= YYSession;
6271
 
 
6272
6270
            /* We have to lookup here since local vars can shadow sysvars */
6273
6271
            {
6274
6272
              /* Not an SP local variable */
6275
 
              sys_var *tmp=find_sys_var(session, $1.str, $1.length);
 
6273
              sys_var *tmp=find_sys_var($1.str, $1.length);
6276
6274
              if (!tmp)
6277
6275
                DRIZZLE_YYABORT;
6278
6276
              $$.var= tmp;