Changeset: 31d73e2ec74d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=31d73e2ec74d
Modified Files:
gdk/gdk_storage.c
Branch: unlock
Log Message:
Correctly print "complex" candidates.
diffs (28 lines):
diff --git a/gdk/gdk_storage.c b/gdk/gdk_storage.c
--- a/gdk/gdk_storage.c
+++ b/gdk/gdk_storage.c
@@ -1019,6 +1019,24 @@ BATprintcolumns(stream *s, int argc, BAT
gdk_return
BATprint(stream *fdout, BAT *b)
{
+ if (complex_cand(b)) {
+ struct canditer ci;
+ canditer_init(&ci, NULL, b);
+ mnstr_printf(fdout,
+ "#--------------------------#\n"
+ "# h\t%s # name\n"
+ "# void\toid # type\n"
+ "#--------------------------#\n",
+ b->tident);
+ for (BUN i = 0; i < ci.ncand; i++) {
+ oid o = canditer_next(&ci);
+ mnstr_printf(fdout,
+ "[ " OIDFMT "@0,\t" OIDFMT "@0 ]\n",
+ (oid) (i + ci.hseq), o);
+ }
+ return GDK_SUCCEED;
+ }
+
BAT *argv[2];
gdk_return ret = GDK_FAIL;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list