Changeset: a76cc5bb475a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=a76cc5bb475a
Modified Files:
sql/backends/monet5/sql_subquery.c
Branch: default
Log Message:
Fixed missuse of hseq, the result of SQLexist is a bat unrelated to the input
diffs (21 lines):
diff --git a/sql/backends/monet5/sql_subquery.c
b/sql/backends/monet5/sql_subquery.c
--- a/sql/backends/monet5/sql_subquery.c
+++ b/sql/backends/monet5/sql_subquery.c
@@ -1111,7 +1111,7 @@ SQLexist(Client cntxt, MalBlkPtr mb, Mal
}
if (isaBatType(getArgType(mb, pci, 0))) {
bat *res = getArgReference_bat(stk, pci, 0);
- if ((r = BATconstant(b ? b->hseqbase : 0, TYPE_bit, &count, b ?
BATcount(b) : 1, TRANSIENT)) == NULL) {
+ if ((r = BATconstant(0, TYPE_bit, &count, b ? BATcount(b) : 1,
TRANSIENT)) == NULL) {
if (b)
BBPunfix(b->batCacheid);
throw(SQL, "aggr.exist", SQLSTATE(HY013)
MAL_MALLOC_FAIL);
@@ -1207,7 +1207,7 @@ SQLnot_exist(Client cntxt, MalBlkPtr mb,
}
if (isaBatType(getArgType(mb, pci, 0))) {
bat *res = getArgReference_bat(stk, pci, 0);
- if ((r = BATconstant(b ? b->hseqbase : 0, TYPE_bit, &count, b ?
BATcount(b) : 1, TRANSIENT)) == NULL) {
+ if ((r = BATconstant(0, TYPE_bit, &count, b ? BATcount(b) : 1,
TRANSIENT)) == NULL) {
if (b)
BBPunfix(b->batCacheid);
throw(SQL, "aggr.not_exist", SQLSTATE(HY013)
MAL_MALLOC_FAIL);
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list