Changeset: 1aa4dbcd13e1 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1aa4dbcd13e1 Modified Files: MonetDB4/src/gdk/Tests/batcasts.stable.out.SunOS5.10 MonetDB4/src/gdk/Tests/batcasts.stable.out.SunOS5.10.oid64 MonetDB4/src/gdk/Tests/casts.stable.out.SunOS5.10 MonetDB4/src/gdk/Tests/casts.stable.out.SunOS5.10.oid64 MonetDB5/tests/gdkTests/Tests/casts.stable.out.SunOS5.10 MonetDB5/tests/gdkTests/Tests/casts.stable.out.SunOS5.10.oid64 Branch: Jun2010 Log Message:
Approve SunOS5.10 output: casting values near 9223372036854775807.0 to lng result in 9223372036854775807. diffs (truncated from 10892 to 300 lines): diff -r ee6f2784538d -r 1aa4dbcd13e1 MonetDB4/src/gdk/Tests/batcasts.stable.out.SunOS5.10 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MonetDB4/src/gdk/Tests/batcasts.stable.out.SunOS5.10 Mon Jun 28 16:15:53 2010 +0200 @@ -0,0 +1,2062 @@ +stdout of test 'batcasts` in directory 'src/gdk` itself: + + +# 14:56:01 > +# 14:56:01 > Mtimeout -timeout 60 Mserver "--config=/ufs/boncz/MonetDB/linux/etc/monet.conf" --debug=10 --set "monet_mod_path=/ufs/boncz/MonetDB/linux/lib/MonetDB" --set "gdk_dbfarm=/ufs/boncz/MonetDB/linux/var/MonetDB/dbfarm" --set "sql_logdir=/ufs/boncz/MonetDB/linux/var/MonetDB/log" --set mapi_port=52524 --set sql_port=56156 --set monet_prompt= --trace --dbname=mTests_src_gdk < batcasts.milM +# 14:56:01 > + +# Monet Database Server V4.3.13 +# Copyright (c) 1993-2004, CWI. All rights reserved. +# compiled for i686-pc-linux-gnu/32bit; dynamically linked. +# casting to int + +var b := new(void,int); +b.append(0); +b.append(1); +b.append(32767); +b.append(32768); +b.append(32769); +b.append(2147483647); +#b.append(2147483648); # implicitly casted to lng +#b.append(2147483649); # implicitly casted to lng +b.append(-2147483647); +#b.append(-2147483648); # implicitly casted to lng +#b.append(-2147483649); # implicitly casted to lng +b.access(BAT_READ); +b.print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 0 ] +[ nil, 1 ] +[ nil, 32767 ] +[ nil, 32768 ] +[ nil, 32769 ] +[ nil, 2147483647 ] +#[ nil, 2147483648 ] # see above +#[ nil, 2147483649 ] # see above +[ nil, -2147483647 ] +#[ nil, -2147483648 ] # see above +#[ nil, -2147483649 ] # see above + +# from bit +b := new(void,bit); +b.append(true); +b.append(false); +b.access(BAT_READ); +b.[int]().print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 1 ] +[ nil, 0 ] + +# from chr +b := new(void,chr); +b.append('a'); +b.access(BAT_READ); +b.[int]().print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 97 ] + +# from sht +b := new(void,sht); +b.append(sht(1)); +b.append(sht(32767)); +b.access(BAT_READ); +b.[int]().print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 1 ] +[ nil, 32767 ] + +# from int +b := new(void,int); +b.append(1); +b.append(32767); +b.append(32768); +b.append(2147483647); +b.append(-2147483647); +b.append(2147483647+1); +b.append(-2147483647 - 1); +# should this produce nil (overflow)? +b.append(2147483647+2); +# should this produce nil (overflow)? +b.append(-2147483647 - 2); +b.access(BAT_READ); +b.[int]().print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 1 ] +[ nil, 32767 ] +[ nil, 32768 ] +[ nil, 2147483647 ] +[ nil, -2147483647 ] +[ nil, nil ] +[ nil, nil ] +[ nil, -2147483647 ] +[ nil, 2147483647 ] + +# from lng +b := new(void,lng); +b.append(1LL); +b.append(2147483647LL); +b.append(2147483648LL); +b.append(2147483649LL); +b.append(-2147483647LL); +b.append(-2147483648LL); +b.append(-2147483649LL); +b.access(BAT_READ); +b.[int]().print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 1 ] +[ nil, 2147483647 ] +[ nil, nil ] +[ nil, nil ] +[ nil, -2147483647 ] +[ nil, nil ] +[ nil, nil ] + +# from flt +b := new(void,flt); +b.append(0.0); +b.append(0.1); +b.append(0.5); +b.append(0.9); +b.append(1.0); +b.append(-0.1); +b.append(-0.5); +b.append(-0.9); +b.append(-1.0); +b.append(2147483647.0); +b.append(2147483648.0); +b.append(2147483649.0); +b.append(-2147483647.0); +b.append(-2147483648.0); +b.append(-2147483649.0); +b.access(BAT_READ); +b.[int]().print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 0 ] +[ nil, 0 ] +[ nil, 0 ] +[ nil, 0 ] +[ nil, 1 ] +[ nil, 0 ] +[ nil, 0 ] +[ nil, 0 ] +[ nil, -1 ] +[ nil, nil ] +[ nil, nil ] +[ nil, nil ] +[ nil, nil ] +[ nil, nil ] +[ nil, nil ] + +# from dbl +b := new(void,dbl); +b.append(0.0LL); +b.append(0.1LL); +b.append(0.5LL); +b.append(0.9LL); +b.append(1.0LL); +b.append(-0.1LL); +b.append(-0.5LL); +b.append(-0.9LL); +b.append(-1.0LL); +b.append(2147483647.0LL); +b.append(2147483648.0LL); +b.append(2147483649.0LL); +b.append(-2147483647.0LL); +b.append(-2147483648.0LL); +b.append(-2147483649.0LL); +b.access(BAT_READ); +b.[int]().print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 0 ] +[ nil, 0 ] +[ nil, 0 ] +[ nil, 0 ] +[ nil, 1 ] +[ nil, 0 ] +[ nil, 0 ] +[ nil, 0 ] +[ nil, -1 ] +[ nil, 2147483647 ] +[ nil, nil ] +[ nil, nil ] +[ nil, -2147483647 ] +[ nil, nil ] +[ nil, nil ] + +# from oid +b := new(void,oid); +b.append(2...@0); +b.append(2...@1); +b.append(2147483...@0); +b.append(2147483...@0); +b.append(2147483...@0); +b.access(BAT_READ); +b.[int]().print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 2 ] +[ nil, 2 ] +[ nil, 2147483647 ] +[ nil, nil ] +[ nil, nil ] + +# from str +b := new(void,str); +b.append("0"); +b.append("32767"); +b.append("2147483647"); +b.append("2147483648"); +b.append("2147483649"); +b.append("-2147483647"); +b.append("-2147483648"); +b.append("-2147483649"); +b.append(""); +b.append("random string"); +b.access(BAT_READ); +b.[int]().print(); +#-----------------# +# h t # name +# void int # type +#-----------------# +[ nil, 0 ] +[ nil, 32767 ] +[ nil, 2147483647 ] +[ nil, nil ] +[ nil, nil ] +[ nil, -2147483647 ] +[ nil, nil ] +[ nil, nil ] +[ nil, nil ] +[ nil, nil ] + +# to bit + +# from bit +b := new(void,bit); +b.append(true); +b.append(false); +b.access(BAT_READ); +b.[bit]().print(); +#-----------------# +# h t # name +# void bit # type +#-----------------# +[ nil, true ] +[ nil, false ] + +# from chr +b := new(void,chr); +b.append('a'); +b.append(chr(0)); +b.access(BAT_READ); +b.[bit]().print(); +#-----------------# +# h t # name +# void bit # type +#-----------------# +[ nil, true ] +[ nil, false ] + +# from sht +b := new(void,sht); +b.append(sht(0)); +b.append(sht(1)); +b.append(sht(-1)); +b.append(sht(4096)); +b.access(BAT_READ); +b.[bit]().print(); +#-----------------# +# h t # name +# void bit # type _______________________________________________ Checkin-list mailing list Checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list