Changeset: c9066d1efc79 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=c9066d1efc79
Modified Files:
sql/backends/monet5/rel_weld.c
Branch: rel-weld
Log Message:
rel_weld: added <> in the list of funcs
diffs (23 lines):
diff --git a/sql/backends/monet5/rel_weld.c b/sql/backends/monet5/rel_weld.c
--- a/sql/backends/monet5/rel_weld.c
+++ b/sql/backends/monet5/rel_weld.c
@@ -151,6 +151,8 @@ get_weld_func(sql_subfunc *f) {
return "&";
else if (strcmp(name, "|") == 0 || strcmp(name, "or") == 0)
return "|";
+ else if (strcmp(name, "<>") == 0 || strcmp(name, "!=") == 0)
+ return "!=";
else if (strcmp(name, "like") == 0)
return "like";
else if (strcmp(name, "year") == 0)
@@ -411,6 +413,10 @@ exp_to_weld(backend *be, weld_state *wst
wprintf(wstate, "i8(");
exps_to_weld(be, wstate, exp->l, " == ");
wprintf(wstate, ")");
+ } else if (strcmp(weld_func, "!=") == 0) {
+ wprintf(wstate, "i8(");
+ exps_to_weld(be, wstate, exp->l, " != ");
+ wprintf(wstate, ")");
} else if (strcmp(weld_func, "isnil") == 0) {
sql_exp *e = ((list*)exp->l)->h->data;
str type =
getWeldType(exp_subtype(e)->type->localtype);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list