[prev in list] [next in list] [prev in thread] [next in thread] 

List:       monetdb-checkins
Subject:    MonetDB: default - JSONunwrap: use corect BAT iterator for doubles
From:       Fabian Groffen <fabian () cwi ! nl>
Date:       2012-03-30 14:01:38
Message-ID: hg.0ad1ddf98504.1333116098.6315528441665844383 () monetdb2 ! cwi-incubator ! nl
[Download RAW message or body]

Changeset: 0ad1ddf98504 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0ad1ddf98504
Modified Files:
	monetdb5/extras/jaql/json.c
Branch: default
Log Message:

JSONunwrap: use corect BAT iterator for doubles

Copy 'n' paste error resulting in an alignment error on Sparc, hence
crash.  Use doubles BATiter when reading the doubles BAT instead of the
string BATiter.


diffs (12 lines):

diff --git a/monetdb5/extras/jaql/json.c b/monetdb5/extras/jaql/json.c
--- a/monetdb5/extras/jaql/json.c
+++ b/monetdb5/extras/jaql/json.c
@@ -1321,7 +1321,7 @@ JSONunwrap(Client cntxt, MalBlkPtr mb, M
 								break;
 							case 'd':
 								BUNfndOID(x, bid, BUNhead(bi, p));
-								l = (lng)*(dbl *)BUNtail(bis, x);
+								l = (lng)*(dbl *)BUNtail(bid, x);
 								BUNins(r, &v, &l, FALSE);
 								break;
 							case 'i':
_______________________________________________
Checkin-list mailing list
Checkin-list@monetdb.org
http://mail.monetdb.org/mailman/listinfo/checkin-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic