diff options
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r-- | sql/sql_udf.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 39800ae6206..387c9970e34 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -162,9 +162,9 @@ void udf_init() { DBUG_PRINT("info",("init udf record")); LEX_STRING name; - name.str=get_field(&mem, table, 0); + name.str=get_field(&mem, table->field[0]); name.length = strlen(name.str); - char *dl_name= get_field(&mem, table, 2); + char *dl_name= get_field(&mem, table->field[2]); bool new_dl=0; Item_udftype udftype=UDFTYPE_FUNCTION; if (table->fields >= 4) // New func table |