Skip to content
Snippets Groups Projects
Verified Commit bbf33a41 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: fail for multiple requests (fail fast for unsupported requests)

parent 1d052f29
No related branches found
No related tags found
2 merge requests!44Release 0.6,!43Merge f-GRPC-main to dev
......@@ -700,7 +700,6 @@ public class Entity extends AbstractObservable implements EntityInterface {
if (!this.isParsed) {
this.isParsed = true;
setValue(getDatatype().parseValue(getValue()));
this.isParsed = true;
}
}
......
......@@ -70,6 +70,9 @@ public class EntityTransactionServiceImpl extends EntityTransactionServiceImplBa
if (sub_request.getRetrieveRequest().hasQuery() // Retrieves are either queries...
&& !sub_request.getRetrieveRequest().getQuery().getQuery().isBlank()) {
final String query = sub_request.getRetrieveRequest().getQuery().getQuery();
if (container.getFlags().containsKey("query")) { // Check for more than one query request.
throw new CaosDBException("Cannot process more than one query request.");
}
container.getFlags().put("query", query);
if (isFileDownload) {
container.getFlags().put("download_files", "true");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment