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
a37eea19
Commit
a37eea19
authored
Jul 13, 2005
by
dlenev@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed trigger.test after fixing bug #11554 "Server crashes on statement
indirectly using non-cached function".
parent
8a28d604
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
17 deletions
+20
-17
mysql-test/r/trigger.result
mysql-test/r/trigger.result
+9
-3
mysql-test/t/trigger.test
mysql-test/t/trigger.test
+11
-14
No files found.
mysql-test/r/trigger.result
View file @
a37eea19
...
...
@@ -232,9 +232,6 @@ if new.id > f1() then
set new.id:= f1();
end if;
end|
select f1();
f1()
10
insert into t1 values (1, "first");
insert into t1 values (f1(), "max");
select * from t1;
...
...
@@ -573,3 +570,12 @@ i k ts
1 1 0000-00-00 00:00:00
2 2 0000-00-00 00:00:00
drop table t1, t2;
drop function if exists bug5893;
create table t1 (col1 int, col2 int);
insert into t1 values (1, 2);
create function bug5893 () returns int return 5;
create trigger t1_bu before update on t1 for each row set new.col1= bug5893();
drop function bug5893;
update t1 set col2 = 4;
ERROR 42000: FUNCTION test.bug5893 does not exist
drop table t1;
mysql-test/t/trigger.test
View file @
a37eea19
...
...
@@ -244,8 +244,6 @@ begin
end
if
;
end
|
delimiter
;
|
# Remove this once bug #11554 will be fixed.
select
f1
();
insert
into
t1
values
(
1
,
"first"
);
insert
into
t1
values
(
f1
(),
"max"
);
select
*
from
t1
;
...
...
@@ -578,15 +576,14 @@ drop table t1, t2;
# Test for bug #5893 "Triggers with dropped functions cause crashes"
# Appropriate error should be reported instead of crash.
# Had to disable this test until bug #11554 will be fixed.
#--disable_warnings
#drop function if exists bug5893;
#--enable_warnings
#create table t1 (col1 int, col2 int);
#insert into t1 values (1, 2);
#create function bug5893 () returns int return 5;
#create trigger t1_bu before update on t1 for each row set new.col1= bug5893();
#drop function bug5893;
#--error 1305
#update t1 set col2 = 4;
#drop table t1;
--
disable_warnings
drop
function
if
exists
bug5893
;
--
enable_warnings
create
table
t1
(
col1
int
,
col2
int
);
insert
into
t1
values
(
1
,
2
);
create
function
bug5893
()
returns
int
return
5
;
create
trigger
t1_bu
before
update
on
t1
for
each
row
set
new
.
col1
=
bug5893
();
drop
function
bug5893
;
--
error
1305
update
t1
set
col2
=
4
;
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