Changeset: f7912b67bad7 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/f7912b67bad7
Modified Files:
sql/backends/monet5/sql_result.c
Branch: directappend
Log Message:
Treat variable width types specially
diffs (12 lines):
diff --git a/sql/backends/monet5/sql_result.c b/sql/backends/monet5/sql_result.c
--- a/sql/backends/monet5/sql_result.c
+++ b/sql/backends/monet5/sql_result.c
@@ -885,7 +885,7 @@ directappend_append_one(void *state_, si
sqlstore *store = state->mvc->session->tr->store;
// unfortunately, append_col_fptr doesn't take const void*.
- void *data = (void*)const_data;
+ void *data = ATOMextern(tpe) ? &const_data : (void*)const_data;
int ret = store->storage_api.append_col(state->mvc->session->tr, c,
off, NULL, data, 1, tpe);
if (ret != LOG_OK) {
throw(SQL, "sql.append", SQLSTATE(42000) "Append failed%s", ret
== LOG_CONFLICT ? " due to conflict with another transaction" : "");
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list