Changeset: cb972465d9bc for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/cb972465d9bc Modified Files: monetdb5/mal/mal_profiler.c Branch: Jul2021_prof_ext Log Message:
Handle null values in format_val2json diffs (14 lines): diff --git a/monetdb5/mal/mal_profiler.c b/monetdb5/mal/mal_profiler.c --- a/monetdb5/mal/mal_profiler.c +++ b/monetdb5/mal/mal_profiler.c @@ -227,6 +227,10 @@ format_val2json(const ValPtr res) { char *buf = NULL; size_t sz = 0; + if ( BATatoms[res->vtype].atomNull && + BATatoms[res->vtype].atomCmp(VALget(res), BATatoms[res->vtype].atomNull) == 0) + return GDKstrdup("null"); + bool use_external = true; switch (res->vtype ) { _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org