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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
300a9920
Commit
300a9920
authored
Apr 28, 2005
by
jimw@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add regression test for calling SOUNDEX() within stored procedure.
The bug appears to have already been fixed. (Bug #7293)
parent
b31960f7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
0 deletions
+33
-0
mysql-test/r/sp.result
mysql-test/r/sp.result
+16
-0
mysql-test/t/sp.test
mysql-test/t/sp.test
+17
-0
No files found.
mysql-test/r/sp.result
View file @
300a9920
...
@@ -3041,4 +3041,20 @@ Warning 1265 Data truncated for column 'id' at row 2
...
@@ -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;
mysql-test/t/sp.test
View file @
300a9920
...
@@ -3723,6 +3723,23 @@ delete from t1|
...
@@ -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
...
...
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