diff options
author | cbell/Chuck@mysql_cab_desk. <> | 2007-08-02 15:27:47 -0400 |
---|---|---|
committer | cbell/Chuck@mysql_cab_desk. <> | 2007-08-02 15:27:47 -0400 |
commit | dc2cab6561e751c22175bddaeeaf0de866e2bee3 (patch) | |
tree | c3c53cd8413b3030c9f2837b374f3db5ad512a70 /sql/sql_udf.cc | |
parent | ac1767df0942f44ebc3db69c1005ee975804fff4 (diff) | |
parent | 62f8d8c64ac16cb370c5f887a19be0384fa91bda (diff) | |
download | mariadb-git-dc2cab6561e751c22175bddaeeaf0de866e2bee3.tar.gz |
Merge mysql_cab_desk.:C:/source/c++/mysql-5.1
into mysql_cab_desk.:C:/source/c++/mysql-5.1-new-rpl-merge
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 8361fc64f33..10bb7844d88 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -472,7 +472,7 @@ int mysql_create_function(THD *thd,udf_func *udf) tables.db= (char*) "mysql"; tables.table_name= tables.alias= (char*) "func"; /* Allow creation of functions even if we can't open func table */ - if (!(table = open_ltable(thd,&tables,TL_WRITE))) + if (!(table = open_ltable(thd, &tables, TL_WRITE, 0))) goto err; table->use_all_columns(); restore_record(table, s->default_values); // Default values for fields @@ -547,7 +547,7 @@ int mysql_drop_function(THD *thd,const LEX_STRING *udf_name) bzero((char*) &tables,sizeof(tables)); tables.db=(char*) "mysql"; tables.table_name= tables.alias= (char*) "func"; - if (!(table = open_ltable(thd,&tables,TL_WRITE))) + if (!(table = open_ltable(thd, &tables, TL_WRITE, 0))) goto err; table->use_all_columns(); table->field[0]->store(exact_name_str, exact_name_len, &my_charset_bin); |