~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_udf.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:
38
38
 
39
39
  if (hash_init(&udf_hash, system_charset_info, 32, 0, 0, get_hash_key, NULL, 0))
40
40
  {
41
 
    sql_print_error(_("Can't allocate memory for udf structures"));
 
41
    errmsg_printf(ERRMSG_LVL_ERROR, _("Can't allocate memory for udf structures"));
42
42
    hash_free(&udf_hash);
43
43
    free_root(&mem, MYF(0));
44
44
    return;
92
92
    int r;
93
93
    if ((r= plugin->plugin->init((void *)&f)))
94
94
    {
95
 
      sql_print_error("Plugin '%s' init function returned error %d.",
96
 
                      plugin->name.str, r);
 
95
      errmsg_printf(ERRMSG_LVL_ERROR, "Plugin '%s' init function returned error %d.",
 
96
                    plugin->name.str, r);
97
97
      return r;
98
98
    }
99
99
  }