~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/rpl_utility.cc

  • Committer: Monty Taylor
  • Date: 2008-08-04 08:36:15 UTC
  • mto: (261.2.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 262.
  • Revision ID: monty@inaugust.com-20080804083615-x1es88h39th0uwer
Added three more files worth of stuff.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
#include "rpl_utility.h"
17
17
#include "rpl_rli.h"
18
18
#include <drizzled/drizzled_error_messages.h>
 
19
#include <libdrizzle/gettext.h>
19
20
 
20
21
/*********************************************************************
21
22
 *                   table_def member definitions                    *
119
120
      assert(tsh->db.str && tsh->table_name.str);
120
121
      error= 1;
121
122
      char buf[256];
122
 
      snprintf(buf, sizeof(buf), "Column %d type mismatch - "
123
 
                "received type %d, %s.%s has type %d",
 
123
      snprintf(buf, sizeof(buf), _("Column %d type mismatch - "
 
124
                "received type %d, %s.%s has type %d"),
124
125
                col, type(col), tsh->db.str, tsh->table_name.str,
125
126
                table->field[col]->type());
126
127
      rli->report(ERROR_LEVEL, ER_BINLOG_ROW_WRONG_TABLE_DEF,
134
135
    {
135
136
      error= 1;
136
137
      char buf[256];
137
 
      snprintf(buf, sizeof(buf), "Column %d size mismatch - "
 
138
      snprintf(buf, sizeof(buf), _("Column %d size mismatch - "
138
139
               "master has size %d, %s.%s on slave has size %d."
139
140
               " Master's column size should be <= the slave's "
140
 
               "column size.", col,
 
141
               "column size."), col,
141
142
               table->field[col]->pack_length_from_metadata(
142
143
                                    m_field_metadata[col]),
143
144
               tsh->db.str, tsh->table_name.str,