diff options
author | SergeyV@selena. <> | 2006-02-27 16:27:34 +0300 |
---|---|---|
committer | SergeyV@selena. <> | 2006-02-27 16:27:34 +0300 |
commit | 78b33e1835b41a90a28d66b1f8cd7adbebf3e994 (patch) | |
tree | 47b89079e617880b2af2982d2217491d1dd8368d /mysql-test/t/skip_grants.test | |
parent | 44a28553823b76d2f0d828aa021622c8547260de (diff) | |
download | mariadb-git-78b33e1835b41a90a28d66b1f8cd7adbebf3e994.tar.gz |
Fixes bug #17595. UDFs are not initialized when running mysqld with
--skip-grant-tables. However when deleting functions UDFs list was checked
regardless of whther UDFs are initialized or not. Additional check is added
into free_udf() and find_udf() functions to prevent possible runtime errors.
Diffstat (limited to 'mysql-test/t/skip_grants.test')
-rw-r--r-- | mysql-test/t/skip_grants.test | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mysql-test/t/skip_grants.test b/mysql-test/t/skip_grants.test index a0164cb0759..45b1d258e4a 100644 --- a/mysql-test/t/skip_grants.test +++ b/mysql-test/t/skip_grants.test @@ -12,8 +12,8 @@ use test; # test that we can create VIEW if privileges check switched off # create table t1 (field1 INT); --- error ER_MALFORMED_DEFINER -CREATE VIEW v1 AS SELECT field1 FROM t1; +#--error ER_MALFORMED_DEFINER +#CREATE VIEW v1 AS SELECT field1 FROM t1; drop table t1; # @@ -30,3 +30,6 @@ create table t1 (a int); create definer='user'@'host' sql security definer view v1 as select * from t1; drop view v1; drop table t1; + +# BUG#17595: DROP FUNCTION IF EXISTS f1 crashes server +drop function if exists f1; |