Changeset: 7dd2c3e5aca7 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/7dd2c3e5aca7
Modified Files:
sql/storage/sql_catalog.c
Branch: Jan2022
Log Message:
Don't copy twice
diffs (17 lines):
diff --git a/sql/storage/sql_catalog.c b/sql/storage/sql_catalog.c
--- a/sql/storage/sql_catalog.c
+++ b/sql/storage/sql_catalog.c
@@ -551,8 +551,11 @@ atom_copy(sql_allocator *sa, atom *a)
if (!r)
return NULL;
- *r = *a;
- r->tpe = a->tpe;
+ *r = (atom) {
+ .isnull = a->isnull,
+ .tpe = a->tpe,
+ .data = (ValRecord) {.vtype = TYPE_void,},
+ };
if (!a->isnull)
SA_VALcopy(sa, &r->data, &a->data);
return r;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list