Changeset: 8a1bbe8a6e10 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8a1bbe8a6e10 Modified Files: sql/backends/monet5/sql.c Branch: DVframework Log Message:
fixed bugs in sql.c: BAT does not have a ttype anymore && A tail type mismatch should not occur if the return type is a TYPE_any during a bind. diffs (21 lines): diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c --- a/sql/backends/monet5/sql.c +++ b/sql/backends/monet5/sql.c @@ -1789,7 +1789,7 @@ mvc_bind_wrap(Client cntxt, MalBlkPtr mb if ((msg = checkSQLContext(cntxt)) != NULL) return msg; b = mvc_bind(m, *sname, *tname, *cname, *access); - if (b && b->ttype != coltype) + if (b && coltype != TYPE_any && b->T->type != coltype) throw(SQL,"sql.bind","tail type mismatch"); if (b) { if (pci->argc == (8 + upd) && getArgType(mb, pci, 6 + upd) == TYPE_int) { @@ -1887,7 +1887,7 @@ mvc_bind_idxbat_wrap(Client cntxt, MalBl if ((msg = checkSQLContext(cntxt)) != NULL) return msg; b = mvc_bind_idxbat(m, *sname, *tname, *iname, *access); - if (b && b->ttype != coltype) + if (b && coltype != TYPE_any && b->T->type != coltype) throw(SQL,"sql.bind","tail type mismatch"); if (b) { if (pci->argc == (8 + upd) && getArgType(mb, pci, 6 + upd) == TYPE_int) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list