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.1976 05/06/22 17:33:31 ramil@stripped +3 -0
a fix (bug #11215: BIGINT: can't set DEFAULT to minimum end-range)
sql/item.cc
1.139 05/06/22 17:33:23 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/22 17:33:23 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/22 17:33:23 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/5.0.b11215
--- 1.138/sql/item.cc 2005-06-21 22:44:13 +05:00
+++ 1.139/sql/item.cc 2005-06-22 17:33:23 +05:00
@@ -3571,7 +3571,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-22 17:33:23 +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-22 17:33:23 +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.1976) BUG#11215 | ramil | 22 Jun |