Avoid a LOB error when expanding a valueset on Postgres

This commit is contained in:
jamesagnew 2020-08-11 08:30:27 -04:00
parent 39eea88b47
commit f3fbad63e7
1 changed files with 6 additions and 3 deletions

View File

@ -994,22 +994,25 @@ public abstract class BaseHapiFhirResourceDao<T extends IBaseResource> extends B
}
@Override
@Transactional
public T read(IIdType theId) {
return read(theId, null);
}
@Override
@Transactional
public T read(IIdType theId, RequestDetails theRequestDetails) {
return read(theId, theRequestDetails, false);
}
@Override
@Transactional
public T read(IIdType theId, RequestDetails theRequest, boolean theDeletedOk) {
validateResourceTypeAndThrowInvalidRequestException(theId);
return myTransactionService.execute(theRequest, tx-> doRead(theId, theRequest, theDeletedOk));
}
public T doRead(IIdType theId, RequestDetails theRequest, boolean theDeletedOk) {
assert TransactionSynchronizationManager.isActualTransactionActive();
// Notify interceptors
if (theRequest != null) {
ActionRequestDetails requestDetails = new ActionRequestDetails(theRequest, getResourceName(), theId);