Changeset: ec531e6b1393 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ec531e6b1393
Modified Files:
sql/storage/bat/res_table.c
Branch: Jul2017
Log Message:
Simplify.
diffs (25 lines):
diff --git a/sql/storage/bat/res_table.c b/sql/storage/bat/res_table.c
--- a/sql/storage/bat/res_table.c
+++ b/sql/storage/bat/res_table.c
@@ -91,20 +91,13 @@ res_col_create(sql_trans *tr, res_table
/* we need to set the order bat otherwise mvc_export_result
won't work with single-row result sets containing BATs */
if (!t->order) {
oid zero = 0;
- BAT *o = COLnew(0, TYPE_oid, 1, TRANSIENT);
+ BAT *o = BATconstant(0, TYPE_oid, &zero, 1, TRANSIENT);
if (o == NULL) {
BBPreclaim(b);
_DELETE(c->tn);
_DELETE(c->name);
return NULL;
}
- if (BUNappend(o, &zero, FALSE) != GDK_SUCCEED) {
- BBPreclaim(b);
- BBPreclaim(o);
- _DELETE(c->tn);
- _DELETE(c->name);
- return NULL;
- }
t->order = o->batCacheid;
BBPkeepref(t->order);
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list