List:Internals« Previous MessageNext Message »
From:Jim Winstead Date:March 25 2005 10:22pm
Subject:bk commit into 5.0 tree (jimw:1.1840) BUG#7293
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of jimw. When jimw does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.1840 05/03/25 13:22:07 jimw@stripped +2 -0
  Add regression test for calling SOUNDEX() within stored procedure.
  The bug appears to have already been fixed. (Bug #7293)

  mysql-test/r/sp.result
    1.123 05/03/25 13:19:47 jimw@stripped +11 -0
    Add new results

  mysql-test/t/sp.test
    1.116 05/03/25 13:19:42 jimw@stripped +10 -1
    Add new regression test

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	jimw
# Host:	rama.(none)
# Root:	/home/jimw/my/mysql-5.0-7293

--- 1.122/mysql-test/r/sp.result	2005-03-23 00:32:40 -08:00
+++ 1.123/mysql-test/r/sp.result	2005-03-25 13:19:47 -08:00
@@ -2798,4 +2798,15 @@
 drop procedure bug6600|
 drop view v1|
 drop table t3|
+create table t77 (s1 varchar(100))|
+insert into t77 values ('secret')|
+create procedure a77(p1 varchar(100)) begin if exists (select * from t77 where 
+soundex(p1)=soundex(s1)) then select 'w'; end if; end;|
+call a77('secret')|
+w
+w
+call a77 ('secrete')|
+w
+w
+drop table t77|
 drop table t1,t2;

--- 1.115/mysql-test/t/sp.test	2005-03-18 07:52:35 -08:00
+++ 1.116/mysql-test/t/sp.test	2005-03-25 13:19:42 -08:00
@@ -3428,9 +3428,18 @@
 #--enable_warnings
 #create procedure bugNNNN...
 
+#
+# Bug #7293: Stored procedure crash with soundex
+# 
+create table t77 (s1 varchar(100))| 
+insert into t77 values ('secret')| 
+create procedure a77(p1 varchar(100)) begin if exists (select * from t77 where 
+soundex(p1)=soundex(s1)) then select 'w'; end if; end;| 
+call a77('secret')| 
+call a77 ('secrete')| 
+drop table t77|
 
 # Add bugs above this line. Use existing tables t1 and t2 when
 # practical, or create table t3, t3 etc temporarily (and drop them).
 delimiter ;|
 drop table t1,t2;
-
Thread
bk commit into 5.0 tree (jimw:1.1840) BUG#7293Jim Winstead25 Mar