~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/message/statement_transform.cc

  • Committer: Brian Aker
  • Date: 2011-02-22 21:41:05 UTC
  • mto: (2192.1.1 drizzle-staging)
  • mto: This revision was merged to the branch mainline in revision 2193.
  • Revision ID: brian@tangent.org-20110222214105-78h53tyxc9q64ce2
This fixes the message such that the table inherits the no replication
property from the schema.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include <config.h>
33
33
 
34
34
#include <boost/lexical_cast.hpp>
35
 
#include <drizzled/message/statement_transform.h>
36
 
#include <drizzled/message/transaction.pb.h>
37
 
#include <drizzled/message/table.pb.h>
 
35
 
38
36
#include <drizzled/charset.h>
39
37
#include <drizzled/charset_info.h>
40
38
#include <drizzled/global_charset_info.h>
 
39
#include <drizzled/message.h>
 
40
#include <drizzled/message/statement_transform.h>
 
41
#include <drizzled/message/transaction.pb.h>
41
42
 
42
43
#include <string>
43
44
#include <vector>
884
885
    destination.append(schema.collation());
885
886
  }
886
887
 
 
888
  if (not message::is_replicated(schema))
 
889
  {
 
890
    destination.append(" REPLICATE = FALSE");
 
891
  }
 
892
 
887
893
  return NONE;
888
894
}
889
895
 
1077
1083
  if (table.has_options())
1078
1084
    (void) transformTableOptionsToSql(table.options(), destination, sql_variant);
1079
1085
 
 
1086
  if (not message::is_replicated(table))
 
1087
  {
 
1088
    destination.append(" REPLICATE = FALSE");
 
1089
  }
 
1090
 
1080
1091
  return NONE;
1081
1092
}
1082
1093
 
1145
1156
  if (options.has_page_checksum() && options.page_checksum())
1146
1157
    destination.append("\nPAGE_CHECKSUM = TRUE");
1147
1158
 
1148
 
  if (options.has_dont_replicate() and options.dont_replicate())
1149
 
  {
1150
 
    destination.append(" REPLICATE = FALSE");
1151
 
  }
1152
 
 
1153
1159
  return NONE;
1154
1160
}
1155
1161