summaryrefslogtreecommitdiff
path: root/sql/sql_udf.h
diff options
context:
space:
mode:
authorunknown <wax@mysql.com>2003-01-09 18:09:21 +0500
committerunknown <wax@mysql.com>2003-01-09 18:09:21 +0500
commita99e80d499bf765a94979b89bb49a3d7818d1908 (patch)
tree15c41f6aac2179a21ea63235d563673f2777891d /sql/sql_udf.h
parente6a76efa292528c97d5db18143d65c70623c4b4c (diff)
downloadmariadb-git-a99e80d499bf765a94979b89bb49a3d7818d1908.tar.gz
change structure of udf_func and parameter of functions mysql_drop_func and add_func (SCRUM)
sql/item_func.cc: change according new structure of udf_func sql/sql_parse.cc: change according with new structure of udf_func sql/sql_udf.cc: change parameter of mysql_drop_func and add_func sql/sql_udf.h: change type of name from *char to LEX_STRING, delete name_length sql/sql_yacc.yy: change according with new structure of udf_func
Diffstat (limited to 'sql/sql_udf.h')
-rw-r--r--sql/sql_udf.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/sql_udf.h b/sql/sql_udf.h
index 1ee9c44ce48..29a351ac52f 100644
--- a/sql/sql_udf.h
+++ b/sql/sql_udf.h
@@ -25,8 +25,7 @@ enum Item_udftype {UDFTYPE_FUNCTION=1,UDFTYPE_AGGREGATE};
typedef struct st_udf_func
{
- char *name;
- int name_length;
+ LEX_STRING name;
Item_result returns;
Item_udftype type;
char *dl;
@@ -61,7 +60,7 @@ class udf_handler :public Sql_alloc
initialized(0)
{}
~udf_handler();
- const char *name() const { return u_d ? u_d->name : "?"; }
+ const char *name() const { return u_d ? u_d->name.str : "?"; }
Item_result result_type () const
{ return u_d ? u_d->returns : STRING_RESULT;}
bool get_arguments();
@@ -140,5 +139,5 @@ void udf_init(void),udf_free(void);
udf_func *find_udf(const char *name, uint len=0,bool mark_used=0);
void free_udf(udf_func *udf);
int mysql_create_function(THD *thd,udf_func *udf);
-int mysql_drop_function(THD *thd,const char *name);
+int mysql_drop_function(THD *thd,const LEX_STRING *name);
#endif