~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Mark Atwood
  • Date: 2009-01-05 04:37:22 UTC
  • mto: (758.1.1 devel)
  • mto: This revision was merged to the branch mainline in revision 759.
  • Revision ID: me@mark.atwood.name-20090105043722-03l4mzcxi4yjjjih
replace sql_print_error etc with errmsg_print

Show diffs side-by-side

added added

removed removed

Lines of Context:
109
109
      strcpy(to, MYSQL50_TABLE_NAME_PREFIX);
110
110
      strncat(to, from, to_length-MYSQL50_TABLE_NAME_PREFIX_LENGTH-1);
111
111
      res= strlen(to);
112
 
      sql_print_error(_("Invalid (old?) table or database name '%s'"), from);
 
112
      errmsg_printf(ERRMSG_LVL_ERROR, _("Invalid (old?) table or database name '%s'"), from);
113
113
    }
114
114
  }
115
115
 
2705
2705
          const char *err_msg= session->main_da.message();
2706
2706
          if (!session->vio_ok())
2707
2707
          {
2708
 
            sql_print_error("%s",err_msg);
 
2708
            errmsg_printf(ERRMSG_LVL_ERROR, "%s", err_msg);
2709
2709
          }
2710
2710
          else
2711
2711
          {
5011
5011
      free(t_table);
5012
5012
    }
5013
5013
    else
5014
 
      sql_print_warning(_("Could not open table %s.%s after rename\n"),
 
5014
      errmsg_printf(ERRMSG_LVL_WARN, _("Could not open table %s.%s after rename\n"),
5015
5015
                        new_db,table_name);
5016
5016
    ha_flush_logs(old_db_type);
5017
5017
  }