From: Date: September 25 2006 9:43pm Subject: bk commit into 5.1 tree (jpipes:1.2322) BUG#21466 List-Archive: http://lists.mysql.com/commits/12502 X-Bug: 21466 Message-Id: <20060925194333.D2C165BC003@shakedown.mysql.com> Below is the list of changes that have just been committed into a local 5.1 repository of jpipes. When jpipes 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@stripped, 2006-09-25 15:43:28-04:00, jpipes@shakedown.(none) +3 -0 Test and fix for Bug #21466: INET_ATON() returns signed int, not unsigned mysql-test/r/func_misc.result@stripped, 2006-09-25 15:43:25-04:00, jpipes@shakedown.(none) +7 -0 Added test for Bug #21466: INET_ATON() returns signed int, not unsigned mysql-test/t/func_misc.test@stripped, 2006-09-25 15:43:25-04:00, jpipes@shakedown.(none) +8 -0 Added test for Bug #21466: INET_ATON() returns signed int, not unsigned sql/item_func.h@stripped, 2006-09-25 15:43:25-04:00, jpipes@shakedown.(none) +1 -1 Fix for Bug #21466: INET_ATON() returns signed int, not unsigned # 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: jpipes # Host: shakedown.(none) # Root: /home/jpipes/dev/mysql-5.1-new-maint --- 1.154/sql/item_func.h 2006-09-25 15:43:33 -04:00 +++ 1.155/sql/item_func.h 2006-09-25 15:43:33 -04:00 @@ -1318,7 +1318,7 @@ Item_func_inet_aton(Item *a) :Item_int_func(a) {} longlong val_int(); const char *func_name() const { return "inet_aton"; } - void fix_length_and_dec() { decimals = 0; max_length = 21; maybe_null=1;} + void fix_length_and_dec() { decimals = 0; max_length = 21; maybe_null=1; unsigned_flag=1;} bool check_partition_func_processor(byte *bool_arg) { return 0;} }; --- 1.25/mysql-test/r/func_misc.result 2006-09-25 15:43:33 -04:00 +++ 1.26/mysql-test/r/func_misc.result 2006-09-25 15:43:33 -04:00 @@ -134,4 +134,11 @@ drop table t2; drop table t1; set global query_cache_size=default; +create table t1 select INET_ATON('255.255.0.1') as `a`; +show create table t1; +Table Create Table +t1 CREATE TABLE `t1` ( + `a` bigint(21) unsigned DEFAULT NULL +) ENGINE=MyISAM DEFAULT CHARSET=latin1 +drop table t1; End of 5.0 tests --- 1.19/mysql-test/t/func_misc.test 2006-09-25 15:43:33 -04:00 +++ 1.20/mysql-test/t/func_misc.test 2006-09-25 15:43:33 -04:00 @@ -125,4 +125,12 @@ drop table t1; set global query_cache_size=default; +# +# Bug #21466: INET_ATON() returns signed, not unsigned +# + +create table t1 select INET_ATON('255.255.0.1') as `a`; +show create table t1; +drop table t1; + --echo End of 5.0 tests