Changeset: dd9205b991f0 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/dd9205b991f0
Modified Files:
sql/backends/monet5/sql_scenario.c
tools/monetdbe/monetdbe.c
Branch: Jun2023
Log Message:
we pass the prepare_id via the result_id as the query structure isn't available
anymore
diffs (23 lines):
diff --git a/sql/backends/monet5/sql_scenario.c
b/sql/backends/monet5/sql_scenario.c
--- a/sql/backends/monet5/sql_scenario.c
+++ b/sql/backends/monet5/sql_scenario.c
@@ -1441,6 +1441,7 @@ SQLparser(Client c, backend *be)
be->q->name = NULL; /* later remove
cleanup from mal from qc code */
qc_delete(m->qc, be->q);
}
+ be->result_id = be->q->id;
be->q = NULL;
}
if (err)
diff --git a/tools/monetdbe/monetdbe.c b/tools/monetdbe/monetdbe.c
--- a/tools/monetdbe/monetdbe.c
+++ b/tools/monetdbe/monetdbe.c
@@ -411,7 +411,7 @@ monetdbe_query_internal(monetdbe_databas
if ((mdbe->msg = SQLengine_(c)) != MAL_SUCCEED)
goto cleanup;
if (m->emode == m_prepare && prepare_id)
- *prepare_id = b->q->id;
+ *prepare_id = b->result_id;
if (!b->results && b->rowcnt >= 0 && affected_rows)
*affected_rows = b->rowcnt;
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]