~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_udf.cc

  • Committer: Stewart Smith
  • Date: 2008-09-15 07:13:59 UTC
  • mfrom: (383.1.21 drizzle)
  • mto: This revision was merged to the branch mainline in revision 408.
  • Revision ID: stewart@flamingspork.com-20080915071359-f8bznznyaiqrtqxa
merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
15
15
 
16
16
/* This implements 'user defined functions' */
17
 
 
18
 
/*
19
 
   Known bugs:
20
 
  
21
 
*/
22
 
 
23
 
#ifdef USE_PRAGMA_IMPLEMENTATION
24
 
#pragma implementation                          // gcc: Class implementation
25
 
#endif
26
 
 
27
 
#include "mysql_priv.h"
28
 
#include <mysys/my_pthread.h>
29
 
 
30
 
extern "C"
31
 
{
32
 
#include <stdarg.h>
33
 
#include <mysys/hash.h>
34
 
}
 
17
#include <drizzled/server_includes.h>
 
18
#include <libdrizzle/gettext.h>
35
19
 
36
20
static bool udf_startup= false; /* We do not lock because startup is single threaded */
37
21
static MEM_ROOT mem;
52
36
 
53
37
  if (hash_init(&udf_hash, system_charset_info, 32, 0, 0, get_hash_key, NULL, 0))
54
38
  {
55
 
    sql_print_error("Can't allocate memory for udf structures");
 
39
    sql_print_error(_("Can't allocate memory for udf structures"));
56
40
    hash_free(&udf_hash);
57
41
    free_root(&mem, MYF(0));
58
42
    return;
113
97
 
114
98
    if (plugin->plugin->init((void *)udff))
115
99
    {
116
 
      sql_print_error("Plugin '%s' init function returned error.",
 
100
      sql_print_error(_("Plugin '%s' init function returned error."),
117
101
                      plugin->name.str);
118
102
      goto err;
119
103
    }