#1594 - Support loading of beans with invalid JSON content

Adjust to be per query via query.setAllowLoadErrors() rather than a
global config via ServerConfig.
This commit is contained in:
rob bygrave
2019-01-09 20:03:26 +13:00
parent 9fc10e8e04
commit 2b0669c2ae
10 changed files with 86 additions and 64 deletions
@@ -52,9 +52,8 @@ class DynamicPropertyAggregationFormula extends DynamicPropertyBase {
Object value;
try {
value = scalarType.read(sqlBeanLoad.ctx().getDataReader());
} catch (Exception e) {
sqlBeanLoad.ctx().handleLoadError(null, asTarget, fullName, e);
sqlBeanLoad.ctx().handleLoadError(fullName, e);
return;
}
if (asTarget != null) {