Changeset: b91f26efc4d0 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/b91f26efc4d0 Modified Files: sql/backends/monet5/sql_gencode.c Branch: new_rmt_opt Log Message:
Updates checks of REMOTE prop diffs (18 lines): diff --git a/sql/backends/monet5/sql_gencode.c b/sql/backends/monet5/sql_gencode.c --- a/sql/backends/monet5/sql_gencode.c +++ b/sql/backends/monet5/sql_gencode.c @@ -927,8 +927,12 @@ static int Symbol symbackup = c->curprg; exception_buffer ebsave = m->sa->eb; - if (prp->id == 0) { - sql_error(m, 003, SQLSTATE(42000) "Missing property on the input relation"); + if (list_empty(prp->value.pval)) { + sql_error(m, 003, SQLSTATE(42000) "Missing REMOTE property on the input relation"); + goto bailout; + } + if (list_length(prp->value.pval) != 1) { + sql_error(m, 003, SQLSTATE(42000) "REMOTE property on the input relation is NOT unique"); goto bailout; } if (strlen(mod) >= IDLENGTH) { _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org