Commit 70111f50 authored by unknown's avatar unknown
Browse files

Changes to the code are necessary to compile on Windows. Typecasts are needed...

Changes to the code are necessary to compile on Windows. Typecasts are needed in several DBUG_DUMP statements. CAB 01 Nov 2006


sql/log_event.cc:
  The changes are so that the code will compile on Windows. Typecasts are needed on the DBUG_DUMP statements to cast a byte * to a char *.
sql/sql_class.cc:
  The changes are necessary to get the code to compile on Windows. The DBUG_DUMP statements need a typecast.
parent f0041180
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -7129,8 +7129,8 @@ int Update_rows_log_event::do_prepare_row(THD *thd, RELAY_LOG_INFO *rli,
                    row_start, &m_cols, row_end, &m_master_reclength,
                    table->write_set, UPDATE_ROWS_EVENT);

  DBUG_DUMP("record[0]", table->record[0], table->s->reclength);
  DBUG_DUMP("m_after_image", m_after_image, table->s->reclength);
  DBUG_DUMP("record[0]", (char *)table->record[0], table->s->reclength);
  DBUG_DUMP("m_after_image", (char *)m_after_image, table->s->reclength);


  /*
+4 −4
Original line number Diff line number Diff line
@@ -2632,10 +2632,10 @@ int THD::binlog_update_row(TABLE* table, bool is_trans,
  my_size_t const after_size= pack_row(table, cols, after_row, 
                                       after_record);
  
  DBUG_DUMP("before_record", before_record, table->s->reclength);
  DBUG_DUMP("after_record", after_record, table->s->reclength);
  DBUG_DUMP("before_row", before_row, before_size);
  DBUG_DUMP("after_row", after_row, after_size);
  DBUG_DUMP("before_record", (char *)before_record, table->s->reclength);
  DBUG_DUMP("after_record", (char *)after_record, table->s->reclength);
  DBUG_DUMP("before_row", (char *)before_row, before_size);
  DBUG_DUMP("after_row", (char *)after_row, after_size);

  Rows_log_event* const ev=
    binlog_prepare_pending_rows_event(table, server_id, cols, colcnt,