[Monetdb-developers] [Monetdb-checkins] MonetDB5/src/modules/atoms blob.mx, , 1.43, 1.44 str.mx, , 1.76, 1.77 xml.mx, , 1.19, 1.20

Stefan Manegold Stefan.Manegold at cwi.nl
Wed Jul 30 23:19:47 CEST 2008


On Wed, Jul 30, 2008 at 08:02:16AM +0000, Martin Kersten wrote:
> Update of /cvsroot/monetdb/MonetDB5/src/modules/atoms
> In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22933/atoms
> 
> Modified Files:
> 	blob.mx str.mx xml.mx 
> Log Message:
> Silenceing the compiler on windows.
> Strings and BATcount are always less then 4GB

Even if so, int (signed) allows only 2^31 - 1, i.e., "2GB".

Moreover, in the 64-bit case (in particular with 64-bit OIDs), neither the
length of strings nor the tuple (BUN) count of BATs is formally restricted
to 2^31 - 1 (or 2^32 - 1) --- in fact, breaking through this limit is one of
the reasons for / features of the 64-bit port of MonetDB --- how efficiently
such larger strings and BATs are handled is a different question ...

That's why I used to guard all down-cast that I added with an assertion to
detect overflows ...

Stefan

-- 
| Dr. Stefan Manegold | mailto:Stefan.Manegold at cwi.nl |
| CWI,  P.O.Box 94079 | http://www.cwi.nl/~manegold/  |
| 1090 GB Amsterdam   | Tel.: +31 (20) 592-4212       |
| The Netherlands     | Fax : +31 (20) 592-4312       |




More information about the developers-list mailing list