Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
480dcb7f
Commit
480dcb7f
authored
Feb 26, 2006
by
dlenev@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed test for bug #13525 "Rename table does not keep info of triggers"
after merging fix for it with main tree.
parent
0b422c63
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
mysql-test/r/trigger.result
mysql-test/r/trigger.result
+10
-10
No files found.
mysql-test/r/trigger.result
View file @
480dcb7f
...
@@ -795,7 +795,7 @@ select trigger_schema, trigger_name, event_object_schema,
...
@@ -795,7 +795,7 @@ select trigger_schema, trigger_name, event_object_schema,
event_object_table, action_statement from information_schema.triggers
event_object_table, action_statement from information_schema.triggers
where event_object_schema = 'test';
where event_object_schema = 'test';
trigger_schema trigger_name event_object_schema event_object_table action_statement
trigger_schema trigger_name event_object_schema event_object_table action_statement
test t1_bi test t1
set @a:=new.id
test t1_bi test t1 set @a:=new.id
rename table t1 to t2;
rename table t1 to t2;
insert into t2 values (102);
insert into t2 values (102);
select @a;
select @a;
...
@@ -805,7 +805,7 @@ select trigger_schema, trigger_name, event_object_schema,
...
@@ -805,7 +805,7 @@ select trigger_schema, trigger_name, event_object_schema,
event_object_table, action_statement from information_schema.triggers
event_object_table, action_statement from information_schema.triggers
where event_object_schema = 'test';
where event_object_schema = 'test';
trigger_schema trigger_name event_object_schema event_object_table action_statement
trigger_schema trigger_name event_object_schema event_object_table action_statement
test t1_bi test t2
set @a:=new.id
test t1_bi test t2 set @a:=new.id
alter table t2 rename to t3;
alter table t2 rename to t3;
insert into t3 values (103);
insert into t3 values (103);
select @a;
select @a;
...
@@ -815,7 +815,7 @@ select trigger_schema, trigger_name, event_object_schema,
...
@@ -815,7 +815,7 @@ select trigger_schema, trigger_name, event_object_schema,
event_object_table, action_statement from information_schema.triggers
event_object_table, action_statement from information_schema.triggers
where event_object_schema = 'test';
where event_object_schema = 'test';
trigger_schema trigger_name event_object_schema event_object_table action_statement
trigger_schema trigger_name event_object_schema event_object_table action_statement
test t1_bi test t3
set @a:=new.id
test t1_bi test t3 set @a:=new.id
alter table t3 rename to t4, add column val int default 0;
alter table t3 rename to t4, add column val int default 0;
insert into t4 values (104, 1);
insert into t4 values (104, 1);
select @a;
select @a;
...
@@ -825,7 +825,7 @@ select trigger_schema, trigger_name, event_object_schema,
...
@@ -825,7 +825,7 @@ select trigger_schema, trigger_name, event_object_schema,
event_object_table, action_statement from information_schema.triggers
event_object_table, action_statement from information_schema.triggers
where event_object_schema = 'test';
where event_object_schema = 'test';
trigger_schema trigger_name event_object_schema event_object_table action_statement
trigger_schema trigger_name event_object_schema event_object_table action_statement
test t1_bi test t4
set @a:=new.id
test t1_bi test t4 set @a:=new.id
drop trigger t1_bi;
drop trigger t1_bi;
drop table t4;
drop table t4;
create database mysqltest;
create database mysqltest;
...
@@ -840,7 +840,7 @@ select trigger_schema, trigger_name, event_object_schema,
...
@@ -840,7 +840,7 @@ select trigger_schema, trigger_name, event_object_schema,
event_object_table, action_statement from information_schema.triggers
event_object_table, action_statement from information_schema.triggers
where event_object_schema = 'test' or event_object_schema = 'mysqltest';
where event_object_schema = 'test' or event_object_schema = 'mysqltest';
trigger_schema trigger_name event_object_schema event_object_table action_statement
trigger_schema trigger_name event_object_schema event_object_table action_statement
mysqltest t1_bi mysqltest t1
set @a:=new.id
mysqltest t1_bi mysqltest t1 set @a:=new.id
rename table t1 to test.t2;
rename table t1 to test.t2;
ERROR HY000: Trigger in wrong schema
ERROR HY000: Trigger in wrong schema
insert into t1 values (102);
insert into t1 values (102);
...
@@ -851,7 +851,7 @@ select trigger_schema, trigger_name, event_object_schema,
...
@@ -851,7 +851,7 @@ select trigger_schema, trigger_name, event_object_schema,
event_object_table, action_statement from information_schema.triggers
event_object_table, action_statement from information_schema.triggers
where event_object_schema = 'test' or event_object_schema = 'mysqltest';
where event_object_schema = 'test' or event_object_schema = 'mysqltest';
trigger_schema trigger_name event_object_schema event_object_table action_statement
trigger_schema trigger_name event_object_schema event_object_table action_statement
mysqltest t1_bi mysqltest t1
set @a:=new.id
mysqltest t1_bi mysqltest t1 set @a:=new.id
drop trigger test.t1_bi;
drop trigger test.t1_bi;
ERROR HY000: Trigger does not exist
ERROR HY000: Trigger does not exist
drop trigger t1_bi;
drop trigger t1_bi;
...
@@ -869,8 +869,8 @@ select trigger_schema, trigger_name, event_object_schema,
...
@@ -869,8 +869,8 @@ select trigger_schema, trigger_name, event_object_schema,
event_object_table, action_statement from information_schema.triggers
event_object_table, action_statement from information_schema.triggers
where event_object_schema = 'test';
where event_object_schema = 'test';
trigger_schema trigger_name event_object_schema event_object_table action_statement
trigger_schema trigger_name event_object_schema event_object_table action_statement
test t1_bi test t1
set @a:=new.id
test t1_bi test t1 set @a:=new.id
test t1_ai test t1
set @b:=new.id
test t1_ai test t1 set @b:=new.id
rename table t1 to t2;
rename table t1 to t2;
ERROR HY000: Can't create/write to file './test/t1_ai.TRN~' (Errcode: 13)
ERROR HY000: Can't create/write to file './test/t1_ai.TRN~' (Errcode: 13)
insert into t1 values (102);
insert into t1 values (102);
...
@@ -881,8 +881,8 @@ select trigger_schema, trigger_name, event_object_schema,
...
@@ -881,8 +881,8 @@ select trigger_schema, trigger_name, event_object_schema,
event_object_table, action_statement from information_schema.triggers
event_object_table, action_statement from information_schema.triggers
where event_object_schema = 'test';
where event_object_schema = 'test';
trigger_schema trigger_name event_object_schema event_object_table action_statement
trigger_schema trigger_name event_object_schema event_object_table action_statement
test t1_bi test t1
set @a:=new.id
test t1_bi test t1 set @a:=new.id
test t1_ai test t1
set @b:=new.id
test t1_ai test t1 set @b:=new.id
drop trigger t1_bi;
drop trigger t1_bi;
drop trigger t1_ai;
drop trigger t1_ai;
drop table t1;
drop table t1;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment