diff options
author | unknown <monty@mashka.mysql.fi> | 2003-01-28 20:56:35 +0200 |
---|---|---|
committer | unknown <monty@mashka.mysql.fi> | 2003-01-28 20:56:35 +0200 |
commit | b533cd5c83f4a721dba960b97fa94abcad819498 (patch) | |
tree | c69a35bf725afc24c5f992fbb309f51812f58598 /sql/sql_udf.cc | |
parent | 2d9a417d56f03f1af44649a0c3f5d757f717fffc (diff) | |
download | mariadb-git-b533cd5c83f4a721dba960b97fa94abcad819498.tar.gz |
Only write to the error log if --log-error is specified and --console is not specified
(On Windows --log-error is enabled by default)
mysys/my_getopt.c:
Call get_one_option() also for boolean values.
scripts/mysqld_safe.sh:
Add option --log-error
sql/log.cc:
Fix for --log-error
sql/mysql_priv.h:
Fix for --log-error
sql/mysqld.cc:
Fix for --log-error
sql/sql_udf.cc:
Lock the mysql/func table properly
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r-- | sql/sql_udf.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc index 8ac313e1127..8a1c19568ae 100644 --- a/sql/sql_udf.cc +++ b/sql/sql_udf.cc @@ -145,7 +145,7 @@ void udf_init() tables.lock_type = TL_READ; tables.db=new_thd->db; - if (open_tables(new_thd, &tables)) + if (open_and_lock_tables(new_thd, &tables)) { DBUG_PRINT("error",("Can't open udf table")); sql_print_error("Can't open mysql/func table"); |