~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/set_var.cc

  • Committer: Brian Aker
  • Date: 2008-10-06 17:35:06 UTC
  • Revision ID: brian@tangent.org-20081006173506-799lz31igxfrqb9a
Removed dead bit around SP/Triggers

Show diffs side-by-side

added added

removed removed

Lines of Context:
866
866
    my_error(ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR, MYF(0));
867
867
    return 1;
868
868
  }
869
 
  /*
870
 
    if in a stored function/trigger, it's too late to change mode
871
 
  */
872
 
  if (thd->in_sub_stmt)
873
 
  {
874
 
    my_error(ER_STORED_FUNCTION_PREVENTS_SWITCH_BINLOG_FORMAT, MYF(0));
875
 
    return 1;    
876
 
  }
 
869
  
877
870
  return sys_var_thd_enum::is_readonly();
878
871
}
879
872