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
6fd6e099
Commit
6fd6e099
authored
Nov 13, 2006
by
dlenev@mockturtle.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-5.0-runtime
into mockturtle.local:/home/dlenev/src/mysql-5.0-bg23651
parents
0f455a81
dd1a4f57
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
0 deletions
+36
-0
mysql-test/r/trigger.result
mysql-test/r/trigger.result
+15
-0
mysql-test/t/trigger.test
mysql-test/t/trigger.test
+20
-0
sql/item_func.cc
sql/item_func.cc
+1
-0
No files found.
mysql-test/r/trigger.result
View file @
6fd6e099
...
@@ -1241,4 +1241,19 @@ i j
...
@@ -1241,4 +1241,19 @@ i j
2 2
2 2
13 13
13 13
drop table t1;
drop table t1;
drop table if exists t1;
drop function if exists f1;
create table t1 (i int);
create function f1() returns int return 10;
create trigger t1_bi before insert on t1 for each row set @a:= f1() + 10;
insert into t1 values ();
select @a;
@a
20
insert into t1 values ();
select @a;
@a
20
drop table t1;
drop function f1;
End of 5.0 tests
End of 5.0 tests
mysql-test/t/trigger.test
View file @
6fd6e099
...
@@ -1499,4 +1499,24 @@ select * from t1;
...
@@ -1499,4 +1499,24 @@ select * from t1;
drop
table
t1
;
drop
table
t1
;
#
# Bug #23651 "Server crashes when trigger which uses stored function
# invoked from different connections".
#
--
disable_warnings
drop
table
if
exists
t1
;
drop
function
if
exists
f1
;
--
enable_warnings
create
table
t1
(
i
int
);
create
function
f1
()
returns
int
return
10
;
create
trigger
t1_bi
before
insert
on
t1
for
each
row
set
@
a
:=
f1
()
+
10
;
insert
into
t1
values
();
select
@
a
;
connection
addconroot1
;
insert
into
t1
values
();
select
@
a
;
connection
default
;
drop
table
t1
;
drop
function
f1
;
--
echo
End
of
5.0
tests
--
echo
End
of
5.0
tests
sql/item_func.cc
View file @
6fd6e099
...
@@ -4858,6 +4858,7 @@ Item_func_sp::cleanup()
...
@@ -4858,6 +4858,7 @@ Item_func_sp::cleanup()
result_field
=
NULL
;
result_field
=
NULL
;
}
}
m_sp
=
NULL
;
m_sp
=
NULL
;
dummy_table
->
s
=
NULL
;
Item_func
::
cleanup
();
Item_func
::
cleanup
();
}
}
...
...
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