List:Internals« Previous MessageNext Message »
From:ramil Date:June 29 2005 7:58am
Subject:bk commit into 5.0 tree (ramil:1.1987) BUG#11215
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of ram. When ram 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.1987 05/06/29 10:58:08 ramil@stripped +3 -0
  a fix (bug #11215: BIGINT: can't set DEFAULT to minimum end-range)

  sql/item.cc
    1.142 05/06/29 10:58:00 ramil@stripped +1 -1
    a fix (bug #11215: BIGINT: can't set DEFAULT to minimum end-range)
    Pass unsig=1 to the constructor. 

  mysql-test/t/type_newdecimal.test
    1.19 05/06/29 10:58:00 ramil@stripped +9 -0
    a fix (bug #11215: BIGINT: can't set DEFAULT to minimum end-range)

  mysql-test/r/type_newdecimal.result
    1.19 05/06/29 10:58:00 ramil@stripped +6 -0
    a fix (bug #11215: BIGINT: can't set DEFAULT to minimum end-range)

# 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:	ramil
# Host:	gw.mysql.r18.ru
# Root:	/usr/home/ram/work/mysql-5.0

--- 1.141/sql/item.cc	2005-06-23 01:56:00 +05:00
+++ 1.142/sql/item.cc	2005-06-29 10:58:00 +05:00
@@ -3573,7 +3573,7 @@
 
 Item_num *Item_uint::neg()
 {
-  Item_decimal *item= new Item_decimal(value, 0);
+  Item_decimal *item= new Item_decimal(value, 1);
   return item->neg();
 }
 

--- 1.18/mysql-test/r/type_newdecimal.result	2005-06-09 12:42:55 +05:00
+++ 1.19/mysql-test/r/type_newdecimal.result	2005-06-29 10:58:00 +05:00
@@ -928,3 +928,9 @@
 a
 0.00
 drop table t1;
+create table t1 (col1 bigint default -9223372036854775808);
+insert into t1 values (default);
+select * from t1;
+col1
+-9223372036854775808
+drop table t1;

--- 1.18/mysql-test/t/type_newdecimal.test	2005-06-09 12:42:55 +05:00
+++ 1.19/mysql-test/t/type_newdecimal.test	2005-06-29 10:58:00 +05:00
@@ -964,3 +964,12 @@
 select * from t1 where a > -0.00;
 select * from t1 where a = -0.00;
 drop table t1;
+
+#
+# Bug #11215: a problem with LONGLONG_MIN
+#
+
+create table t1 (col1 bigint default -9223372036854775808);
+insert into t1 values (default);
+select * from t1;
+drop table t1;
Thread
bk commit into 5.0 tree (ramil:1.1987) BUG#11215ramil29 Jun