~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/haildb/haildb_engine.cc

  • Committer: Lee Bieber
  • Date: 2011-02-11 20:30:05 UTC
  • mfrom: (2157.1.3 build)
  • Revision ID: kalebral@gmail.com-20110211203005-757o1y2yf78dxzqr
Merge Stewart - 716848: drizzleimport displays wrong program_name
Merge Stewart - update README file
Merge Andrew and Joe - Exposes the InnoDB SYS_REPLICATION_LOG to data_dictionary so that it is fast and fixes many issues we have been having

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
***********************************************************************/
72
72
 
73
73
 
74
 
#include <config.h>
 
74
#include "config.h"
75
75
#include <drizzled/table.h>
76
76
#include <drizzled/error.h>
77
 
#include <drizzled/internal/my_pthread.h>
 
77
#include "drizzled/internal/my_pthread.h"
78
78
#include <drizzled/plugin/transactional_storage_engine.h>
79
79
#include <drizzled/plugin/error_message.h>
80
80
 
88
88
#include <map>
89
89
#include <fstream>
90
90
#include <drizzled/message/table.pb.h>
91
 
#include <drizzled/internal/m_string.h>
 
91
#include "drizzled/internal/m_string.h"
92
92
 
93
 
#include <drizzled/global_charset_info.h>
 
93
#include "drizzled/global_charset_info.h"
94
94
 
95
95
#include "haildb_datadict_dump_func.h"
96
96
#include "config_table_function.h"
101
101
#include "haildb_engine.h"
102
102
 
103
103
#include <drizzled/field.h>
104
 
#include <drizzled/field/blob.h>
105
 
#include <drizzled/field/enum.h>
 
104
#include "drizzled/field/blob.h"
 
105
#include "drizzled/field/enum.h"
106
106
#include <drizzled/session.h>
 
107
#include <boost/program_options.hpp>
107
108
#include <drizzled/module/option_map.h>
 
109
#include <iostream>
108
110
#include <drizzled/charset.h>
109
 
#include <drizzled/current_session.h>
110
 
 
111
 
#include <iostream>
112
111
 
113
112
namespace po= boost::program_options;
114
 
#include <boost/program_options.hpp>
115
113
#include <boost/algorithm/string.hpp>
116
114
 
117
115
using namespace std;
277
275
    return HA_ERR_LOCK_DEADLOCK;
278
276
 
279
277
  case DB_LOCK_WAIT_TIMEOUT:
280
 
    session->markTransactionForRollback(false);
281
278
    return HA_ERR_LOCK_WAIT_TIMEOUT;
282
279
 
283
280
  case DB_NO_REFERENCED_ROW:
1923
1920
  }
1924
1921
 
1925
1922
  err= ib_cursor_first(cursor);
1926
 
  if (current_session->getLex()->sql_command == SQLCOM_CREATE_TABLE
 
1923
  if (current_session->lex->sql_command == SQLCOM_CREATE_TABLE
1927
1924
      && err == DB_MISSING_HISTORY)
1928
1925
  {
1929
1926
    /* See https://bugs.launchpad.net/drizzle/+bug/556978