Changeset: d332ff7766fd for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/d332ff7766fd
Modified Files:
        monetdb5/mal/mal_profiler.c
Branch: Sep2022
Log Message:

Use string nil escaped properly and not null.


diffs (16 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
@@ -228,9 +228,9 @@ 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");
+       if (BATatoms[res->vtype].atomNull &&
+               BATatoms[res->vtype].atomCmp(VALget(res), 
BATatoms[res->vtype].atomNull) == 0)
+               return GDKstrdup("\"nil\"");
 
        bool use_external = true;
 
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to