mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-7283 UDF: CREATE OR REPLACE, CREATE IF NOT EXISTS, DROP IF EXISTS
MDEV-7282 SP: CREATE OR REPLACE, CREATE IF NOT EXISTS
This commit is contained in:
@ -29,6 +29,12 @@ ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'db2'
|
||||
USE db1;
|
||||
CREATE OR REPLACE TABLE t1(id INT);
|
||||
ERROR 42000: DROP command denied to user 'mysqltest_1'@'localhost' for table 't1'
|
||||
CREATE OR REPLACE PROCEDURE proc1 (OUT cnt INT) BEGIN END;
|
||||
ERROR 42000: alter routine command denied to user 'mysqltest_1'@'localhost' for routine 'db1.proc1'
|
||||
CREATE OR REPLACE FUNCTION lookup RETURNS STRING SONAME "udf_example.so";
|
||||
ERROR 42000: Access denied for user 'mysqltest_1'@'localhost' to database 'mysql'
|
||||
CREATE OR REPLACE FUNCTION hello(str char(20)) RETURNS TEXT RETURN CONCAT('Hello, ', str, '!');
|
||||
ERROR 42000: alter routine command denied to user 'mysqltest_1'@'localhost' for routine 'db1.hello'
|
||||
SELECT CURRENT_USER;
|
||||
CURRENT_USER
|
||||
root@localhost
|
||||
|
Reference in New Issue
Block a user