Changeset: 908c39474e84 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=908c39474e84
Modified Files:
        tools/embedded/monetdb_embedded.c
        tools/embedded/monetdb_embedded.h
Branch: mbedded
Log Message:

set the name of the result (also included it in the overwrite c-structure)


diffs (32 lines):

diff --git a/tools/embedded/monetdb_embedded.c 
b/tools/embedded/monetdb_embedded.c
--- a/tools/embedded/monetdb_embedded.c
+++ b/tools/embedded/monetdb_embedded.c
@@ -1034,6 +1034,8 @@ monetdb_result_fetch(monetdb_connection 
                        j++;
                }
        }
+       if (column_result)
+               column_result->name = 
result->monetdb_resultset->cols[column_index].name;
 cleanup:
        if (b)
                BBPunfix(b->batCacheid);
diff --git a/tools/embedded/monetdb_embedded.h 
b/tools/embedded/monetdb_embedded.h
--- a/tools/embedded/monetdb_embedded.h
+++ b/tools/embedded/monetdb_embedded.h
@@ -99,12 +99,13 @@ typedef struct {
 
 typedef void* monetdb_connection;
 
-#define DEFAULT_STRUCT_DEFINITION(ctype, typename) \
-       typedef struct                                 \
-       {                                              \
+#define DEFAULT_STRUCT_DEFINITION(ctype, typename)         \
+       typedef struct                                     \
+       {                                                  \
                monetdb_types type;                        \
                ctype *data;                               \
                size_t count;                              \
+               char *name;                                \
                ctype null_value;                          \
                double scale;                              \
                int (*is_null)(ctype value);               \
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to