~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_table.cc

  • Committer: Lee
  • Date: 2009-01-06 20:24:58 UTC
  • mfrom: (759 drizzle)
  • mto: This revision was merged to the branch mainline in revision 763.
  • Revision ID: lbieber@lbieber-desktop-20090106202458-82n4kyftrnakvl4r
merge with latest from the trunk

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
          {
5013
5013
      free(t_table);
5014
5014
    }
5015
5015
    else
5016
 
      sql_print_warning(_("Could not open table %s.%s after rename\n"),
 
5016
      errmsg_printf(ERRMSG_LVL_WARN, _("Could not open table %s.%s after rename\n"),
5017
5017
                        new_db,table_name);
5018
5018
    ha_flush_logs(old_db_type);
5019
5019
  }