~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/table_writer.cc

  • Committer: Lee Bieber
  • Date: 2011-01-10 20:12:43 UTC
  • mfrom: (2069.1.3 build)
  • Revision ID: kalebral@gmail.com-20110110201243-j7xse6v4ptaipc92
Merge Gustaf - Use constrained_check<> classes on kernel sysvars 
Merge Andrew - fix bug 645004: libuuid configure error message needs changing
Merge Stewart - fix bug 698315: innobase tests fail with --repeat=2

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <config.h>
 
20
#include "config.h"
21
21
 
22
22
#include <iostream>
23
23
#include <fstream>
203
203
  message::Table::TableOptions *tableopts;
204
204
 
205
205
  table->set_name("t1");
206
 
  table->set_catalog("LOCAL");
207
206
  table->set_type(message::Table::INTERNAL);
208
207
 
209
208
  tableopts= table->mutable_options();
264
263
 
265
264
  fstream output(vm["table-name"].as<string>().c_str(),
266
265
                 ios::out | ios::trunc | ios::binary);
267
 
  if (not table.SerializeToOstream(&output))
 
266
  if (!table.SerializeToOstream(&output))
268
267
  {
269
268
    cerr << "Failed to write schema." << endl;
270
269
    return -1;