fix in dbGet: decide use of db_field_log based on whether it has copy or not

This commit is contained in:
Ben Franksen
2021-01-14 17:38:58 +01:00
parent 85822f3051
commit 56f05d722d

View File

@@ -952,7 +952,7 @@ long dbGet(DBADDR *paddr, short dbrType,
goto done;
}
if (!pfl) {
if (!dbfl_has_copy(pfl)) {
status = dbFastGetConvertRoutine[field_type][dbrType]
(paddr->pfield, pbuf, paddr);
} else {
@@ -1000,7 +1000,7 @@ long dbGet(DBADDR *paddr, short dbrType,
/* convert data into the caller's buffer */
if (n <= 0) {
; /*do nothing */
} else if (!pfl) {
} else if (!dbfl_has_copy(pfl)) {
status = convert(paddr, pbuf, n, capacity, offset);
} else {
DBADDR localAddr = *paddr; /* Structure copy */