Changeset: fee590863a7a for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/fee590863a7a
Modified Files:
sql/backends/monet5/sql.c
Branch: Jul2021
Log Message:
Don't close client's stream
diffs (21 lines):
diff --git a/sql/backends/monet5/sql.c b/sql/backends/monet5/sql.c
--- a/sql/backends/monet5/sql.c
+++ b/sql/backends/monet5/sql.c
@@ -2601,7 +2601,7 @@ mvc_export_table_wrap( Client cntxt, Mal
}
if ((ok = mvc_export_result(cntxt->sqlcontext, s, res, tostdout,
mb->starttime, mb->optimize)) < 0) {
msg = createException(SQL, "sql.resultSet", SQLSTATE(45000)
"Result set construction failed");
- if (!tostdout)
+ if (!onclient && !tostdout)
close_stream(s);
goto wrapup_result_set1;
}
@@ -2832,7 +2832,7 @@ mvc_export_row_wrap( Client cntxt, MalBl
}
if ((ok = mvc_export_result(cntxt->sqlcontext, s, res, strcmp(filename,
"stdout") == 0, mb->starttime, mb->optimize)) < 0) {
msg = createException(SQL, "sql.resultSet", SQLSTATE(45000)
"Result set construction failed");
- if (!tostdout)
+ if (!onclient && !tostdout)
close_stream(s);
goto wrapup_result_set;
}
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list