diff options
author | unknown <pem@mysql.comhem.se> | 2004-10-07 15:32:36 +0200 |
---|---|---|
committer | unknown <pem@mysql.comhem.se> | 2004-10-07 15:32:36 +0200 |
commit | 437855378fd67d9a4d06fd6df8c74fbfc3e29282 (patch) | |
tree | 06812c79e7be7621f9965d364d7317e350a19bb7 /mysql-test/r/sp-error.result | |
parent | 3ed9e6684088b6c154e6fe9d88265021453983e0 (diff) | |
download | mariadb-git-437855378fd67d9a4d06fd6df8c74fbfc3e29282.tar.gz |
Revised BUG#5000: SPs can be created with no default database.
Now simply give an error if no database. (The "global SP feature" will be
done using PATH instead.)
mysql-test/r/sp-error.result:
Removed test cases for undone "feature".
mysql-test/t/sp-error.test:
Removed test cases for undone "feature".
sql/sql_parse.cc:
Check if created procedure/function has a database; give error if not.
sql/sql_yacc.yy:
Undid the "global SP feature".
Diffstat (limited to 'mysql-test/r/sp-error.result')
-rw-r--r-- | mysql-test/r/sp-error.result | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/mysql-test/r/sp-error.result b/mysql-test/r/sp-error.result index 540a5652197..0a679957e44 100644 --- a/mysql-test/r/sp-error.result +++ b/mysql-test/r/sp-error.result @@ -1,27 +1,4 @@ delete from mysql.proc; -create function .f1() returns int return 1; -create procedure .p1() select 1, database(); -create procedure p1() select 2, database(); -alter procedure .p1 sql security invoker; -select .f1(); -.f1() -1 -call .p1(); -1 database() -1 test -call p1(); -2 database() -2 test -select f1(); -ERROR 42000: FUNCTION test.f1 does not exist -select db,name,type,security_type from mysql.proc; -db name type security_type - f1 FUNCTION DEFINER - p1 PROCEDURE INVOKER -test p1 PROCEDURE DEFINER -drop function .f1; -drop procedure .p1; -drop procedure p1; create procedure syntaxerror(t int)| ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 create procedure syntaxerror(t int)| |