~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_insert.cc

  • Committer: Brian Aker
  • Date: 2008-11-11 05:25:01 UTC
  • Revision ID: brian@gir-3.local-20081111052501-z3s58o75vot3s26t
Third pass on insert for row.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1504
1504
        if (mysql_bin_log.is_open())
1505
1505
          session->binlog_query(Session::ROW_QUERY_TYPE, session->query, session->query_length,
1506
1506
                            transactional_table, false);
1507
 
        if (!session->current_stmt_binlog_row_based && !can_rollback_data())
1508
 
          session->transaction.all.modified_non_trans_table= true;
1509
1507
    }
1510
1508
    assert(transactional_table || !changed ||
1511
1509
                session->transaction.stmt.modified_non_trans_table);
1785
1783
    row-based replication for the statement.  If we are creating a
1786
1784
    temporary table, we need to start a statement transaction.
1787
1785
  */
1788
 
  if ((session->lex->create_info.options & HA_LEX_CREATE_TMP_TABLE) == 0 &&
1789
 
      session->current_stmt_binlog_row_based)
 
1786
  if ((session->lex->create_info.options & HA_LEX_CREATE_TMP_TABLE) == 0 && session->current_stmt_binlog_row_based)
1790
1787
  {
1791
1788
    session->binlog_start_trans_and_stmt();
1792
1789
  }
1862
1859
    schema that will do a close_thread_tables(), destroying the
1863
1860
    statement transaction cache.
1864
1861
  */
1865
 
  assert(session->current_stmt_binlog_row_based);
1866
1862
  assert(tables && *tables && count > 0);
1867
1863
 
1868
1864
  char buf[2048];