Update of /cvsroot/monetdb/sql/src/backends/monet4
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv17548/src/backends/monet4
Modified Files:
sql_result.mx
Log Message:
Cast BUN_MAX and BUN_NONE to BUN and VAR_MAX to var_t.
Add casts where these values (actually only BUN_MAX) are used with a signed
type.
U sql_result.mx
Index: sql_result.mx
===================================================================
RCS file: /cvsroot/monetdb/sql/src/backends/monet4/sql_result.mx,v
retrieving revision 1.85
retrieving revision 1.86
diff -u -d -r1.85 -r1.86
--- sql_result.mx 31 Aug 2008 21:54:29 -0000 1.85
+++ sql_result.mx 10 Sep 2008 20:10:45 -0000 1.86
@@ -439,7 +439,7 @@
dec_format *dec;
as.nr_attrs = list_length(t->columns.set);
- as.nr = sz;
+ as.nr = (sz<1)?BUN_NONE:(BUN)sz;
as.offset = offset;
fmt = as.format = (ascii_io *) GDKmalloc(sizeof(ascii_io) *
(as.nr_attrs + 1));
dec = (dec_format*) GDKmalloc(sizeof(dec_format) * (as.nr_attrs
+ 1));
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins