~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_udf.h

  • Committer: Brian Aker
  • Date: 2008-07-12 20:42:47 UTC
  • mfrom: (134.1.2 drizzle)
  • Revision ID: brian@tangent.org-20080712204247-25xybfz5mgd050zo
Merge Mark's UDF Example

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
  LEX_STRING name;
37
37
  Item_result returns;
38
38
  Item_udftype type;
39
 
  char *dl;
40
 
  void *dlhandle;
41
39
  Udf_func_any func;
42
40
  Udf_func_init func_init;
43
41
  Udf_func_deinit func_deinit;
44
42
  Udf_func_clear func_clear;
45
43
  Udf_func_add func_add;
46
 
  ulong usage_count;
 
44
  void *data;
47
45
} udf_func;
48
46
 
49
47
class Item_result_field;
133
131
};
134
132
 
135
133
 
136
 
#ifdef HAVE_DLOPEN
137
134
void udf_init(void),udf_free(void);
138
135
udf_func *find_udf(const char *name, uint len=0,bool mark_used=0);
139
136
void free_udf(udf_func *udf);
140
137
int mysql_create_function(THD *thd,udf_func *udf);
141
 
int mysql_drop_function(THD *thd,const LEX_STRING *name);
142
 
#endif