Changeset: e94aa920a0f8 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/e94aa920a0f8
Modified Files:
        sql/backends/monet5/sql_gencode.c
Branch: default
Log Message:

Merge with Mar2025 branch


diffs (28 lines):

diff --git a/sql/ChangeLog.Mar2025 b/sql/ChangeLog.Mar2025
--- a/sql/ChangeLog.Mar2025
+++ b/sql/ChangeLog.Mar2025
@@ -1,6 +1,10 @@
 # ChangeLog file for sql
 # This file is updated with Maddlog
 
+* Thu Jun 19 2025 Lucas Pereira <[email protected]>
+- When a prepared statement is executed, sys.queue now shows the text
+  of the original PREPARE statement along with the EXEC and its arguments.
+
 * Wed May 14 2025 Martin van Dinther <[email protected]>
 - Corrected reading decimal type columns from external ODBC data sources
   via proto_loader('odbc:...'). Those columns were mapped to varchar type
diff --git a/sql/backends/monet5/sql_gencode.c 
b/sql/backends/monet5/sql_gencode.c
--- a/sql/backends/monet5/sql_gencode.c
+++ b/sql/backends/monet5/sql_gencode.c
@@ -1040,8 +1040,8 @@ backend_dumpstmt_body(backend *be, MalBl
                        cq *cq = qc_find(m->qc, f->base.id);
                        cq_query = cq ? cq->f->query : NULL;
                        if (cq_query) {
-                               size_t buf_sz = strlen(query) + 
strlen(cq_query);
-                               buf = GDKmalloc(buf_sz);
+                               size_t buf_sz = 2 + strlen(query) + 
strlen(cq_query);
+                               buf = GDKmalloc(buf_sz * sizeof(char));
                                snprintf(buf, buf_sz, "%.*s %s", 
(int)strlen(query) - 1, query, cq_query);
                                query = buf;
                        }
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to