Changeset: 552e9da7fd74 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/552e9da7fd74
Modified Files:
        tools/monetdbe/monetdbe.c
Branch: default
Log Message:

Another small fix.


diffs (16 lines):

diff --git a/tools/monetdbe/monetdbe.c b/tools/monetdbe/monetdbe.c
--- a/tools/monetdbe/monetdbe.c
+++ b/tools/monetdbe/monetdbe.c
@@ -1923,6 +1923,12 @@ GENERATE_BASE_HEADERS(monetdbe_data_time
                goto cleanup;                                                   
                                                \
        }                                                                       
                                                                \
        bat_data->type.type = monetdbe_##tpe;                                   
                        \
+       if ((bat_data->type.sql_type = GDKstrdup(sqltpe->type->base.name)) == 
NULL) {\
+                               set_error(mdbe, createException(MAL, 
"monetdbe.monetdbe_result_fetch", MAL_MALLOC_FAIL)); \
+                               goto cleanup;                                   
                                                \
+       }                                                                       
                                                                \
+       bat_data->type.scale = sqltpe->scale;                                   
                        \
+       bat_data->type.digits = sqltpe->digits;                                 
                        \
        bat_data->is_null = tpe##_is_null;                                      
                                \
        if (sqltpe->type->radix == 10) bat_data->scale = pow(10, 
sqltpe->scale); \
        column_result = (monetdbe_column*) bat_data;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to