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

We need the impl column in all embedded cases.


diffs (21 lines):

diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c
--- a/sql/backends/monet5/sql_result.c
+++ b/sql/backends/monet5/sql_result.c
@@ -876,7 +876,7 @@ create_prepare_result(backend *b, cq *q,
        BAT* order              = NULL;
        node *n;
 
-       const int nr_columns = b->client->protocol == PROTOCOL_COLUMNAR? 7 : 6;
+       const int nr_columns = (b->client->protocol == PROTOCOL_COLUMNAR || 
GDKembedded()) ? 7 : 6;
 
        int len1 = 0, len4 = 0, len5 = 0, len6 = 0, len7 =0;    /* column 
widths */
        int len2 = 1, len3 = 1;
@@ -1011,7 +1011,7 @@ create_prepare_result(backend *b, cq *q,
                goto wrapup;
        }
 
-       if (b->client->protocol == PROTOCOL_COLUMNAR && mvc_result_column(b, 
"prepare", "impl" , "varchar", len7, 0, bimpl))
+       if ((b->client->protocol == PROTOCOL_COLUMNAR || GDKembedded()) && 
mvc_result_column(b, "prepare", "impl" , "varchar", len7, 0, bimpl))
                error = -1;
 
        wrapup:
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to