Changeset: 0948d33e1783 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0948d33e1783
Modified Files:
sql/backends/monet5/sql_basket.c
Branch: trails
Log Message:
Removed unnecessary point cast. binsert is already a BAT *
diffs (36 lines):
diff --git a/sql/backends/monet5/sql_basket.c b/sql/backends/monet5/sql_basket.c
--- a/sql/backends/monet5/sql_basket.c
+++ b/sql/backends/monet5/sql_basket.c
@@ -580,7 +580,7 @@ BSKTappend(Client cntxt, MalBlkPtr mb, M
bskt = BSKTlocate(sname,tname);
if( bskt == 0) {
if (binsert)
- BBPunfix(((BAT *) binsert)->batCacheid);
+ BBPunfix(binsert->batCacheid);
throw(SQL, "basket.append",SQLSTATE(HY005) "Cannot access
basket descriptor %s.%s\n",sname,tname);
}
bn = BSKTbindColumn(sname,tname,cname);
@@ -588,7 +588,7 @@ BSKTappend(Client cntxt, MalBlkPtr mb, M
if( bn){
if (binsert){
if( BATappend(bn, binsert, NULL, TRUE) != GDK_SUCCEED) {
- BBPunfix(((BAT *) binsert)->batCacheid);
+ BBPunfix(binsert->batCacheid);
throw(MAL,"basket.append",SQLSTATE(HY005)
"insertion failed\n");
}
} else
@@ -597,12 +597,12 @@ BSKTappend(Client cntxt, MalBlkPtr mb, M
BATsettrivprop(bn);
} else {
if (binsert)
- BBPunfix(((BAT *) binsert)->batCacheid);
+ BBPunfix(binsert->batCacheid);
throw(SQL, "basket.append",SQLSTATE(3F000) "Cannot access
target column %s.%s.%s\n",sname,tname,cname);
}
if (binsert )
- BBPunfix(((BAT *) binsert)->batCacheid);
+ BBPunfix(binsert->batCacheid);
return MAL_SUCCEED;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list