From 6f9dfaa4b1efa5e5f0780429dcd2fb0663476d3c Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 22 Nov 2007 14:48:03 +0300 Subject: [PATCH] Add a test case for Bug#29817. The bug was fixed by the patch for Bug#28318. mysql-test/r/skip_grants.result: Add a test case for Bug#29817 mysql-test/t/skip_grants.test: Add a test case for Bug#29817 --- mysql-test/r/skip_grants.result | 6 ++++++ mysql-test/t/skip_grants.test | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/mysql-test/r/skip_grants.result b/mysql-test/r/skip_grants.result index 6bb8cbea2f1..38e017af7ad 100644 --- a/mysql-test/r/skip_grants.result +++ b/mysql-test/r/skip_grants.result @@ -72,3 +72,9 @@ count(*) select count(*) from information_schema.USER_PRIVILEGES; count(*) 0 +# +# Bug#29817 Queries with UDF fail with non-descriptive error +# if mysql.proc is missing +# +select no_such_function(1); +ERROR 42000: FUNCTION test.no_such_function does not exist diff --git a/mysql-test/t/skip_grants.test b/mysql-test/t/skip_grants.test index 5e0fc65bc34..8e543b9e38c 100644 --- a/mysql-test/t/skip_grants.test +++ b/mysql-test/t/skip_grants.test @@ -122,3 +122,9 @@ select count(*) from information_schema.COLUMN_PRIVILEGES; select count(*) from information_schema.SCHEMA_PRIVILEGES; select count(*) from information_schema.TABLE_PRIVILEGES; select count(*) from information_schema.USER_PRIVILEGES; +--echo # +--echo # Bug#29817 Queries with UDF fail with non-descriptive error +--echo # if mysql.proc is missing +--echo # +--error ER_SP_DOES_NOT_EXIST +select no_such_function(1);