summaryrefslogtreecommitdiff
path: root/sql/sql_udf.cc
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2004-02-01 15:30:32 +0200
committerbell@sanja.is.com.ua <>2004-02-01 15:30:32 +0200
commit2a9cd37cd69e70dfbfe868b635bc21c8996d8fb7 (patch)
tree6695a3de384136658355d41c6bd8beba4f4f92ac /sql/sql_udf.cc
parent95fcfaf63c47fb7c1410877b827a5a666af46b0a (diff)
downloadmariadb-git-2a9cd37cd69e70dfbfe868b635bc21c8996d8fb7.tar.gz
now all tables of query are locked in one place (including derived tables)
fixed BUG#2120 and other problem with EXPLAINing derived tables
Diffstat (limited to 'sql/sql_udf.cc')
-rw-r--r--sql/sql_udf.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_udf.cc b/sql/sql_udf.cc
index 337f2540a39..6e8aae54b23 100644
--- a/sql/sql_udf.cc
+++ b/sql/sql_udf.cc
@@ -149,7 +149,7 @@ void udf_init()
tables.lock_type = TL_READ;
tables.db=new_thd->db;
- if (open_and_lock_tables(new_thd, &tables))
+ if (simple_open_n_lock_tables(new_thd, &tables))
{
DBUG_PRINT("error",("Can't open udf table"));
sql_print_error("Can't open mysql/func table");