1809
1809
my_printf_error(ER_UNKNOWN_COLLATION,
1810
"Unknown collation '%s' in table '%-.64s' definition",
1810
_("Unknown collation '%s' in table '%-.64s' definition"),
1811
1811
MYF(0), csname, share->table_name.str);
1815
1815
strxmov(buff, share->normalized_path.str, reg_ext, NullS);
1816
1816
my_printf_error(ER_NOT_FORM_FILE,
1817
"Table '%-.64s' was created with a different version "
1818
"of MySQL and cannot be read",
1817
_("Table '%-.64s' was created with a different version "
1818
"of MySQL and cannot be read"),
2403
2403
Still this can be a sign of a tampered table, output an error
2404
2404
to the error log.
2406
sql_print_error("Incorrect definition of table %s.%s: "
2407
"expected column '%s' at position %d, found '%s'.",
2406
sql_print_error(_("Incorrect definition of table %s.%s: "
2407
"expected column '%s' at position %d, found '%s'."),
2408
2408
table->s->db.str, table->alias, table_def->name.str, i,
2409
2409
field->field_name);
2429
2429
if (strncmp(sql_type.c_ptr_safe(), table_def->type.str,
2430
2430
table_def->type.length - 1))
2432
sql_print_error("Incorrect definition of table %s.%s: "
2432
sql_print_error(_("Incorrect definition of table %s.%s: "
2433
2433
"expected column '%s' at position %d to have type "
2434
"%s, found type %s.", table->s->db.str, table->alias,
2434
"%s, found type %s."), table->s->db.str, table->alias,
2435
2435
table_def->name.str, i, table_def->type.str,
2436
2436
sql_type.c_ptr_safe());
2439
2439
else if (table_def->cset.str && !field->has_charset())
2441
sql_print_error("Incorrect definition of table %s.%s: "
2441
sql_print_error(_("Incorrect definition of table %s.%s: "
2442
2442
"expected the type of column '%s' at position %d "
2443
2443
"to have character set '%s' but the type has no "
2444
"character set.", table->s->db.str, table->alias,
2444
"character set."), table->s->db.str, table->alias,
2445
2445
table_def->name.str, i, table_def->cset.str);
2448
2448
else if (table_def->cset.str &&
2449
2449
strcmp(field->charset()->csname, table_def->cset.str))
2451
sql_print_error("Incorrect definition of table %s.%s: "
2451
sql_print_error(_("Incorrect definition of table %s.%s: "
2452
2452
"expected the type of column '%s' at position %d "
2453
2453
"to have character set '%s' but found "
2454
"character set '%s'.", table->s->db.str, table->alias,
2454
"character set '%s'."), table->s->db.str, table->alias,
2455
2455
table_def->name.str, i, table_def->cset.str,
2456
2456
field->charset()->csname);
2462
sql_print_error("Incorrect definition of table %s.%s: "
2462
sql_print_error(_("Incorrect definition of table %s.%s: "
2463
2463
"expected column '%s' at position %d to have type %s "
2464
" but the column is not found.",
2464
" but the column is not found."),
2465
2465
table->s->db.str, table->alias,
2466
2466
table_def->name.str, i, table_def->type.str);