Changeset: 6df4e7d609f6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=6df4e7d609f6
Modified Files:
        sql/backends/monet5/sql_execute.c
Branch: jit
Log Message:

Add debugging statements


diffs (21 lines):

diff --git a/sql/backends/monet5/sql_execute.c 
b/sql/backends/monet5/sql_execute.c
--- a/sql/backends/monet5/sql_execute.c
+++ b/sql/backends/monet5/sql_execute.c
@@ -478,9 +478,17 @@ SQLstatementIntern(Client c, str *expr, 
                        goto endofcompile;
                }
                /* generate MAL code */
+#ifdef _SQL_COMPILE
+               mnstr_printf(c->fdout, "#SQLstatement:pre-compile\n");
+               printFunction(c->fdout, c->curprg->def, 0, LIST_MAL_NAME | 
LIST_MAL_VALUE  |  LIST_MAL_MAPI);
+#endif
                if( backend_callinline(be, c) < 0 ||
                        backend_dumpstmt(be, c->curprg->def, s, 1, 1) < 0)
                        err = 1;
+#ifdef _SQL_COMPILE
+               mnstr_printf(c->fdout, "#SQLstatement:post-compile\n");
+               printFunction(c->fdout, c->curprg->def, 0, LIST_MAL_NAME | 
LIST_MAL_VALUE  |  LIST_MAL_MAPI);
+#endif
                /* always keep it around for inspection */
                SQLaddQueryToCache(c);
                msg =SQLoptimizeFunction(c,c->curprg->def);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to