~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_delete.cc

  • Committer: Brian Aker
  • Date: 2009-02-05 09:40:42 UTC
  • Revision ID: brian@tangent.org-20090205094042-e51fvbgbb8ppt2m8
Fixed session call from function to method.

Show diffs side-by-side

added added

removed removed

Lines of Context:
163
163
    free_underlaid_joins(session, select_lex);
164
164
    session->row_count_func= 0;
165
165
    DRIZZLE_DELETE_END();
166
 
    my_ok(session, (ha_rows) session->row_count_func);
 
166
    session->my_ok((ha_rows) session->row_count_func);
167
167
    /*
168
168
      We don't need to call reset_auto_increment in this case, because
169
169
      mysql_truncate always gives a NULL conds argument, hence we never
326
326
  if (error < 0 || (session->lex->ignore && !session->is_fatal_error))
327
327
  {
328
328
    session->row_count_func= deleted;
329
 
    my_ok(session, (ha_rows) session->row_count_func);
 
329
    session->my_ok((ha_rows) session->row_count_func);
330
330
  }
331
331
  return(error >= 0 || session->is_error());
332
332
 
760
760
  if (!local_error)
761
761
  {
762
762
    session->row_count_func= deleted;
763
 
    ::my_ok(session, (ha_rows) session->row_count_func);
 
763
    session->my_ok((ha_rows) session->row_count_func);
764
764
  }
765
765
  return 0;
766
766
}
846
846
        we don't test current_stmt_binlog_row_based.
847
847
      */
848
848
      write_bin_log(session, true, session->query, session->query_length);
849
 
      my_ok(session);           // This should return record count
 
849
      session->my_ok();         // This should return record count
850
850
    }
851
851
    pthread_mutex_lock(&LOCK_open);
852
852
    unlock_table_name(session, table_list);