~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_udf.cc

  • Committer: Brian Aker
  • Date: 2008-08-18 04:35:40 UTC
  • mfrom: (342 codestyle)
  • mto: This revision was merged to the branch mainline in revision 352.
  • Revision ID: brian@tangent.org-20080818043540-numg7vydi7b0bzcd
Mering Monty's work

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 
16
16
/* This implements 'user defined functions' */
17
17
#include <drizzled/server_includes.h>
 
18
#include <libdrizzle/gettext.h>
18
19
 
19
20
static bool udf_startup= false; /* We do not lock because startup is single threaded */
20
21
static MEM_ROOT mem;
35
36
 
36
37
  if (hash_init(&udf_hash, system_charset_info, 32, 0, 0, get_hash_key, NULL, 0))
37
38
  {
38
 
    sql_print_error("Can't allocate memory for udf structures");
 
39
    sql_print_error(_("Can't allocate memory for udf structures"));
39
40
    hash_free(&udf_hash);
40
41
    free_root(&mem, MYF(0));
41
42
    return;
96
97
 
97
98
    if (plugin->plugin->init((void *)udff))
98
99
    {
99
 
      sql_print_error("Plugin '%s' init function returned error.",
 
100
      sql_print_error(_("Plugin '%s' init function returned error."),
100
101
                      plugin->name.str);
101
102
      goto err;
102
103
    }