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.1990 05/08/17 19:56:14 jimw@stripped +3 -0
Revert patch for Bug #12595, it causes the sql_mode test to fail.
sql/item_cmpfunc.cc
1.168 05/08/17 19:56:11 jimw@stripped +0 -6
Revert patch for checking length of ESCAPE, it is not correct.
mysql-test/t/select.test
1.64 05/08/17 19:56:11 jimw@stripped +0 -11
Remove regression test
mysql-test/r/select.result
1.79 05/08/17 19:56:11 jimw@stripped +0 -11
Update results
# 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-clean
--- 1.167/sql/item_cmpfunc.cc 2005-08-16 11:54:48 -07:00
+++ 1.168/sql/item_cmpfunc.cc 2005-08-17 19:56:11 -07:00
@@ -2792,12 +2792,6 @@
{
/* If we are on execution stage */
String *escape_str= escape_item->val_str(&tmp_value1);
- /* ESCAPE must be 1 char in length.*/
- if (escape_str && escape_str->numchars() != 1)
- {
- my_error(ER_WRONG_ARGUMENTS,MYF(0),"ESCAPE");
- return TRUE;
- }
escape= escape_str ? *(escape_str->ptr()) : '\\';
/*
--- 1.78/mysql-test/r/select.result 2005-08-17 07:19:28 -07:00
+++ 1.79/mysql-test/r/select.result 2005-08-17 19:56:11 -07:00
@@ -2756,14 +2756,3 @@
select x'10' + 0, X'10' + 0, b'10' + 0, B'10' + 0;
x'10' + 0 X'10' + 0 b'10' + 0 B'10' + 0
16 16 2 2
-CREATE TABLE BUG_12595(a varchar(100));
-INSERT INTO BUG_12595 VALUES ('hakan%'), ('hakank'), ("ha%an");
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*';
-a
-hakan%
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**';
-ERROR HY000: Incorrect arguments to ESCAPE
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha%%an' ESCAPE '%';
-a
-ha%an
-DROP TABLE BUG_12595;
--- 1.63/mysql-test/t/select.test 2005-08-17 07:41:07 -07:00
+++ 1.64/mysql-test/t/select.test 2005-08-17 19:56:11 -07:00
@@ -2348,14 +2348,3 @@
#
select x'10' + 0, X'10' + 0, b'10' + 0, B'10' + 0;
-
-#
-# BUG #12595
-#
-CREATE TABLE BUG_12595(a varchar(100));
-INSERT INTO BUG_12595 VALUES ('hakan%'), ('hakank'), ("ha%an");
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan*%' ESCAPE '*';
--- error 1210
-SELECT * FROM BUG_12595 WHERE a LIKE 'hakan**%' ESCAPE '**';
-SELECT * FROM BUG_12595 WHERE a LIKE 'ha%%an' ESCAPE '%';
-DROP TABLE BUG_12595;
| Thread |
|---|
| • bk commit into 5.0 tree (jimw:1.1990) BUG#12595 | Jim Winstead | 18 Aug |