~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/table.cc

  • Committer: Monty Taylor
  • Date: 2008-08-04 19:48:27 UTC
  • mto: (261.2.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 262.
  • Revision ID: monty@inaugust.com-20080804194827-zhmvew3spkz03frx
Added strings from table.cc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1807
1807
      csname= tmp;
1808
1808
    }
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);
1812
1812
    break;
1813
1813
  }
1814
1814
  case 6:
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"), 
1819
1819
                    MYF(0), buff);
1820
1820
    break;
1821
1821
  case 8:
2403
2403
          Still this can be a sign of a tampered table, output an error
2404
2404
          to the error log.
2405
2405
        */
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);
2410
2410
      }
2429
2429
      if (strncmp(sql_type.c_ptr_safe(), table_def->type.str,
2430
2430
                  table_def->type.length - 1))
2431
2431
      {
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());
2437
2437
        error= true;
2438
2438
      }
2439
2439
      else if (table_def->cset.str && !field->has_charset())
2440
2440
      {
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);
2446
2446
        error= true;
2447
2447
      }
2448
2448
      else if (table_def->cset.str &&
2449
2449
               strcmp(field->charset()->csname, table_def->cset.str))
2450
2450
      {
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);
2457
2457
        error= true;
2459
2459
    }
2460
2460
    else
2461
2461
    {
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);
2467
2467
      error= true;