mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
Add regression test for calling SOUNDEX() within stored procedure.
The bug appears to have already been fixed. (Bug #7293)
This commit is contained in:
parent
b31960f71d
commit
300a9920ed
2 changed files with 33 additions and 0 deletions
|
@ -3041,4 +3041,20 @@ Warning 1265 Data truncated for column 'id' at row 2
|
||||||
delete from t1|
|
delete from t1|
|
||||||
drop procedure bug9004_1|
|
drop procedure bug9004_1|
|
||||||
drop procedure bug9004_2|
|
drop procedure bug9004_2|
|
||||||
|
drop procedure if exists bug7293|
|
||||||
|
insert into t1 values ('secret', 0)|
|
||||||
|
create procedure bug7293(p1 varchar(100))
|
||||||
|
begin
|
||||||
|
if exists (select id from t1 where soundex(p1)=soundex(id)) then
|
||||||
|
select 'yes';
|
||||||
|
end if;
|
||||||
|
end;|
|
||||||
|
call bug7293('secret')|
|
||||||
|
yes
|
||||||
|
yes
|
||||||
|
call bug7293 ('secrete')|
|
||||||
|
yes
|
||||||
|
yes
|
||||||
|
drop procedure bug7293|
|
||||||
|
delete from t1|
|
||||||
drop table t1,t2;
|
drop table t1,t2;
|
||||||
|
|
|
@ -3723,6 +3723,23 @@ delete from t1|
|
||||||
drop procedure bug9004_1|
|
drop procedure bug9004_1|
|
||||||
drop procedure bug9004_2|
|
drop procedure bug9004_2|
|
||||||
|
|
||||||
|
#
|
||||||
|
# BUG#7293: Stored procedure crash with soundex
|
||||||
|
#
|
||||||
|
--disable_warnings
|
||||||
|
drop procedure if exists bug7293|
|
||||||
|
--enable_warnings
|
||||||
|
insert into t1 values ('secret', 0)|
|
||||||
|
create procedure bug7293(p1 varchar(100))
|
||||||
|
begin
|
||||||
|
if exists (select id from t1 where soundex(p1)=soundex(id)) then
|
||||||
|
select 'yes';
|
||||||
|
end if;
|
||||||
|
end;|
|
||||||
|
call bug7293('secret')|
|
||||||
|
call bug7293 ('secrete')|
|
||||||
|
drop procedure bug7293|
|
||||||
|
delete from t1|
|
||||||
|
|
||||||
#
|
#
|
||||||
# BUG#NNNN: New bug synopsis
|
# BUG#NNNN: New bug synopsis
|
||||||
|
|
Loading…
Reference in a new issue