Changeset: d78e175e9976 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=d78e175e9976
Modified Files:
sql/server/sql_qc.c
Branch: default
Log Message:
Initialize in a modern way.
The main reason is to avoid assigning 0 to an enum (f->lang) which is
not allowed by the Intel compiler.
diffs (32 lines):
diff --git a/sql/server/sql_qc.c b/sql/server/sql_qc.c
--- a/sql/server/sql_qc.c
+++ b/sql/server/sql_qc.c
@@ -141,21 +141,16 @@ qc_insert(qc *cache, sql_allocator *sa,
}
}
+ *f = (sql_func) {
+ .mod = "user",
+ .type = F_PROC,
+ .query = cmd,
+ .ops = params,
+ .res = res,
+ };
base_init(sa, &f->base, 0, TR_NEW, NULL);
f->base.id = n->id;
f->base.name = f->imp = n->name;
- f->mod = "user";
- f->type = F_PROC;
- f->query = cmd;
- f->lang = 0;
- f->sql = 0;
- f->side_effect = 0;
- f->varres = 0;
- f->vararg = 0;
- f->ops = params;
- f->res = res;
- f->fix_scale = 0;
- f->system = 0;
n->f = f;
return n;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list