~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_yacc.yy

  • Committer: Brian Aker
  • Date: 2008-11-25 02:31:14 UTC
  • Revision ID: brian@tangent.org-20081125023114-2f7sx8fye2jytgyw
Removed dead event structure pieces from replication.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1382
1382
          SELECT_SYM
1383
1383
          {
1384
1384
            LEX *lex=Lex;
1385
 
            lex->lock_option= using_update_log ? TL_READ_NO_INSERT : TL_READ;
 
1385
            lex->lock_option= TL_READ;
1386
1386
            if (lex->sql_command == SQLCOM_INSERT)
1387
1387
              lex->sql_command= SQLCOM_INSERT_SELECT;
1388
1388
            else if (lex->sql_command == SQLCOM_REPLACE)
3359
3359
        | CURRENT_USER optional_braces
3360
3360
          {
3361
3361
            $$= new (YYSession->mem_root) Item_func_current_user(Lex->current_context());
3362
 
            Lex->set_stmt_unsafe();
3363
3362
          }
3364
3363
        | DATE_SYM '(' expr ')'
3365
3364
          { $$= new (YYSession->mem_root) Item_date_typecast($3); }
3421
3420
        | USER '(' ')'
3422
3421
          {
3423
3422
            $$= new (YYSession->mem_root) Item_func_user();
3424
 
            Lex->set_stmt_unsafe();
3425
3423
          }
3426
3424
        | YEAR_SYM '(' expr ')'
3427
3425
          { $$= new (YYSession->mem_root) Item_func_year($3); }
3766
3764
            }
3767
3765
            if (!($$= get_system_var(YYSession, $2, $3, $4)))
3768
3766
              DRIZZLE_YYABORT;
3769
 
            if (!((Item_func_get_system_var*) $$)->is_written_to_binlog())
3770
 
              Lex->set_stmt_unsafe();
3771
3767
          }
3772
3768
        ;
3773
3769
 
4856
4852
            lex->duplicates= DUP_ERROR; 
4857
4853
            mysql_init_select(lex);
4858
4854
            /* for subselects */
4859
 
            lex->lock_option= (using_update_log) ? TL_READ_NO_INSERT : TL_READ;
 
4855
            lex->lock_option= TL_READ;
4860
4856
          }
4861
4857
          insert_lock_option
4862
4858
          opt_ignore insert2