~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/transaction_reader.cc

  • Committer: Brian Aker
  • Date: 2009-12-23 16:59:55 UTC
  • mfrom: (1143.4.25 transaction_log)
  • Revision ID: brian@gaz-20091223165955-l6n17ertyv48v35y
Merge Jay

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
{
53
53
  vector<string> sql_strings;
54
54
 
55
 
  message::transformStatementToSql(statement, sql_strings, message::DRIZZLE);
 
55
  message::transformStatementToSql(statement,
 
56
                                   sql_strings,
 
57
                                   message::DRIZZLE,
 
58
                                   true /* already in transaction */);
56
59
 
57
60
  for (vector<string>::iterator sql_string_iter= sql_strings.begin();
58
61
       sql_string_iter != sql_strings.end();
97
100
  size_t num_statements= transaction.statement_size();
98
101
  size_t x;
99
102
 
 
103
  cout << "START TRANSACTION;" << endl;
100
104
  for (x= 0; x < num_statements; ++x)
101
105
  {
102
106
    const message::Statement &statement= transaction.statement(x);
103
107
    printStatement(statement);
104
108
  }
 
109
  cout << "COMMIT;" << endl;
105
110
}
106
111
 
107
112
int main(int argc, char* argv[])