mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
99515a3ac8
into mysql.com:/home/alik/Documents/AllProgs/MySQL/devel/5.0-rt mysql-test/r/sp.result: Auto merged sql/sql_trigger.cc: Auto merged sql/sql_yacc.yy: Auto merged mysql-test/r/skip_grants.result: Merge 5.0 and 5.0-runtime. mysql-test/t/skip_grants.test: Merge 5.0 and 5.0-runtime.
30 lines
760 B
Text
30 lines
760 B
Text
drop table if exists t1,v1;
|
|
drop view if exists t1,v1;
|
|
drop procedure if exists f1;
|
|
use test;
|
|
create procedure f1() select 1;
|
|
drop procedure f1;
|
|
create table t1 (a int);
|
|
create definer='user'@'host' sql security definer view v1 as select * from t1;
|
|
drop view v1;
|
|
drop table t1;
|
|
drop function if exists f1;
|
|
Warnings:
|
|
Note 1305 FUNCTION f1 does not exist
|
|
DROP VIEW IF EXISTS v1;
|
|
DROP VIEW IF EXISTS v2;
|
|
DROP TABLE IF EXISTS t1;
|
|
CREATE TABLE t1(c INT);
|
|
CREATE TRIGGER t1_bi BEFORE INSERT ON t1
|
|
FOR EACH ROW
|
|
SET @a = 1;
|
|
CREATE VIEW v1 AS SELECT * FROM t1;
|
|
CREATE DEFINER=a@b TRIGGER ti_ai AFTER INSERT ON t1
|
|
FOR EACH ROW
|
|
SET @b = 1;
|
|
CREATE DEFINER=a@b VIEW v2 AS SELECT * FROM t1;
|
|
DROP TRIGGER t1_bi;
|
|
DROP TRIGGER ti_ai;
|
|
DROP VIEW v1;
|
|
DROP VIEW v2;
|
|
DROP TABLE t1;
|