Changeset: 300ed9c0c27a for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=300ed9c0c27a Modified Files: sql/backends/monet5/sql_result.c Branch: protocol Log Message:
Fix bug with NULL blobs. 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 @@ -2059,7 +2059,7 @@ int mvc_export_resultset_prot10(mvc *m, if (convert_to_string || ATOMvarsized(mtype)) { if (c->type.type->eclass == EC_BLOB) { blob *b = (blob*) BUNtail(iterators[i], row); - rowsize += sizeof(lng) + b->nitems == ~(size_t) 0 ? 0 : b->nitems; + rowsize += sizeof(lng) + (b->nitems == ~(size_t) 0) ? 0 : b->nitems; } else { size_t slen = strlen((const char*) BUNtail(iterators[i], row)); rowsize += slen + 1; _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list