mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Merge mockturtle.local:/home/dlenev/src/mysql-5.0-bg23651
into mockturtle.local:/home/dlenev/src/mysql-5.1-merge mysql-test/r/trigger.result: Auto merged mysql-test/t/trigger.test: Auto merged sql/item_func.cc: Auto merged
This commit is contained in:
@@ -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
|
||||||
|
@@ -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
|
||||||
|
@@ -4852,6 +4852,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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user