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

Only produce query field in text_to_sql event.


diffs (12 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
@@ -215,7 +215,7 @@ prepareNonMalEvent(Client cntxt, enum ev
                goto cleanup_and_exit;
        if (tag && !logadd(&logbuf, ", \"tag\":"OIDFMT, *tag))
                goto cleanup_and_exit;
-       if (query && !logadd(&logbuf, ", \"query\":\"%s\"", query))
+       if (query && phase == TEXT_TO_SQL && !logadd(&logbuf, ", 
\"query\":\"%s\"", query))
                goto cleanup_and_exit;
        if (state != 0 && !logadd(&logbuf, ", \"state\":\"error\""))
                goto cleanup_and_exit;
_______________________________________________
checkin-list mailing list -- checkin-list@monetdb.org
To unsubscribe send an email to checkin-list-le...@monetdb.org

Reply via email to