List:Internals« Previous MessageNext Message »
From:sinisa Date:December 13 2003 3:20pm
Subject:bk commit into 4.1 tree (Sinisa:1.1671)
View as plain text  
Below is the list of changes that have just been committed into a local
4.1 repository of Sinisa. When Sinisa 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://www.mysql.com/doc/I/n/Installing_source_tree.html

ChangeSet
  1.1671 03/12/13 17:20:35 Sinisa@stripped +3 -0
  Already approved bug fix for #1561.
  
  Bug happens in INTERVAL function when number of compared arguments
  is 8 or more.

  sql/item_cmpfunc.cc
    1.116 03/12/13 17:20:29 Sinisa@stripped +1 -1
    Already approved bug fix for #1561.
    
    Bug happens in INTERVAL function when number of compared arguments
    is 8 or more.

  mysql-test/t/func_set.test
    1.8 03/12/13 17:20:29 Sinisa@stripped +5 -0
    Already approved bug fix for #1561.
    
    Bug happens in INTERVAL function when number of compared arguments
    is 8 or more.

  mysql-test/r/func_set.result
    1.8 03/12/13 17:20:29 Sinisa@stripped +6 -0
    Already approved bug fix for #1561.
    
    Bug happens in INTERVAL function when number of compared arguments
    is 8 or more.

# 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:	Sinisa
# Host:	sinisa.nasamreza.org
# Root:	/mnt/work/mysql-4.1

--- 1.115/sql/item_cmpfunc.cc	Thu Nov 20 22:07:00 2003
+++ 1.116/sql/item_cmpfunc.cc	Sat Dec 13 17:20:29 2003
@@ -603,7 +603,7 @@
   if (intervals)
   {					// Use binary search to find interval
     uint start,end;
-    start= 1;
+    start= 0;
     end=   row->cols()-2;
     while (start != end)
     {

--- 1.7/mysql-test/r/func_set.result	Thu Oct 30 12:52:02 2003
+++ 1.8/mysql-test/r/func_set.result	Sat Dec 13 17:20:29 2003
@@ -50,3 +50,9 @@
 2	one
 4	two
 drop table t1,t2;
+SELECT INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56);
+INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56)
+1
+SELECT INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56, 77);
+INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56, 77)
+1

--- 1.7/mysql-test/t/func_set.test	Thu Oct 30 12:52:16 2003
+++ 1.8/mysql-test/t/func_set.test	Sat Dec 13 17:20:29 2003
@@ -35,3 +35,8 @@
 select one.id, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id;
 select one.id, elt(two.val,'one','two') from t1 one, t2 two where two.id=one.id order by one.id;
 drop table t1,t2;
+
+# some more INTERVAL tests 
+
+SELECT INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56);
+SELECT INTERVAL(13, 7, 14, 21, 28, 35, 42, 49, 56, 77);
Thread
bk commit into 4.1 tree (Sinisa:1.1671)sinisa13 Dec