Skip to content
Snippets Groups Projects
Verified Commit e48c9acf authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Throw better error when using aggregate functions in versioned queries

parent 94ae2490
Branches
Tags
No related merge requests found
...@@ -317,6 +317,10 @@ public class POV implements EntityFilterInterface { ...@@ -317,6 +317,10 @@ public class POV implements EntityFilterInterface {
} }
if (getAggregate() != null) { // agg if (getAggregate() != null) { // agg
if (query.isVersioned()) {
throw new UnsupportedOperationException(
"Versioned queries are not supported for aggregate functions like GREATES or SMALLEST in the filters.");
}
callPOV.setString(14, getAggregate()); callPOV.setString(14, getAggregate());
} else { } else {
callPOV.setNull(14, VARCHAR); callPOV.setNull(14, VARCHAR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment