[MonetDB-users] Failure reading in negative bigint

Hello,
I have recently started trying out monetdb and have been very impressed by
its speed so far.
However, I am hitting a failure trying to read in a large negative number
(bitmask) into a bigint field;
sql>\

Hi Nikhil, thanks for reporting this. However, this is more a feature than a bug in MonetDB --- well, maybe that not that clear / suitable error message might be considered a bug. For numerical types, MonetDB uses the smallest representable value (per type) as null value, i.e., for a x-bit (signed) integer type, -2^(x-1) is NULL, and "only" -((2^(x-1))-1) - (2^(x-1)-1) is a valid range. For that standard SQL types, this means the following: type byte/bit NULL min max tinyint 1 / 8 -128 -127 127 smallint 2 / 16 -32768 -32767 32767 integer 4 / 32 -2147483648 -2147483647 2147483647 bigint 8 / 64 -9223372036854775808 -9223372036854775807 9223372036854775807 Kind regards, Stefan On Thu, Mar 22, 2012 at 12:28:54PM -0400, Nikhil Padmanabhan wrote:
-- | Stefan.Manegold @ CWI.nl | DB Architectures (INS1) | | http://CWI.nl/~manegold/ | Science Park 123 (L321) | | Tel.: +31 (0)20 592-4212 | 1098 XG Amsterdam (NL) |
participants (2)
-
Nikhil Padmanabhan
-
Stefan Manegold