~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_update.cc

  • Committer: Monty
  • Date: 2008-11-23 09:50:11 UTC
  • mfrom: (602 drizzle)
  • mto: This revision was merged to the branch mainline in revision 603.
  • Revision ID: mordred@palanthas.inaugust.com-20081123095011-4fc0daxxumw90eko
MergedĀ inĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
735
735
{
736
736
  List<Item> all_fields;
737
737
  SELECT_LEX *select_lex= &session->lex->select_lex;
738
 
  
739
 
  /*
740
 
    Statement-based replication of UPDATE ... LIMIT is not safe as order of
741
 
    rows is not defined, so in mixed mode we go to row-based.
742
 
 
743
 
    Note that we may consider a statement as safe if order_st BY primary_key
744
 
    is present. However it may confuse users to see very similiar statements
745
 
    replicated differently.
746
 
  */
747
 
  if (session->lex->current_select->select_limit)
748
 
  {
749
 
    session->lex->set_stmt_unsafe();
750
 
    session->set_current_stmt_binlog_row_based();
751
 
  }
752
738
 
753
739
  session->lex->allow_sum_func= 0;
754
740