Changeset: 53dcac0e4215 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=53dcac0e4215
Modified Files:
        tools/monetdbe/monetdbe.c
Branch: Oct2020
Log Message:

add error on incorrect type


diffs (15 lines):

diff --git a/tools/monetdbe/monetdbe.c b/tools/monetdbe/monetdbe.c
--- a/tools/monetdbe/monetdbe.c
+++ b/tools/monetdbe/monetdbe.c
@@ -1183,6 +1183,11 @@ monetdbe_append(monetdbe_database dbhdl,
                        //-------------------------------------
                        BAT *bn = NULL;
 
+                       if (mtype != c->type.type->localtype) {
+                               mdbe->msg = createException(SQL, 
"monetdbe.monetdbe_append", "Cannot append %d into column '%s'", 
input[i]->type, c->base.name);
+                               goto cleanup;
+                       }
+
                        if ((bn = COLnew(0, mtype, 0, TRANSIENT)) == NULL) {
                                mdbe->msg = createException(SQL, 
"monetdbe.monetdbe_append", "Cannot create append column");
                                goto cleanup;
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to