new error code for empty arrays

This commit is contained in:
2020-05-07 15:42:51 +02:00
committed by Andrew Johnson
parent afdf34b791
commit 5d808b7c02
4 changed files with 6 additions and 5 deletions
+2 -2
View File
@@ -206,7 +206,7 @@ static long dbDbGetValue(struct link *plink, short dbrType, void *pbuffer,
/* For the moment, empty arrays are not supported by EPICS */
if (dbChannelFinalElements(chan) <= 0) /* empty array request */
return S_db_badField;
return S_db_emptyArray;
if (ellCount(&chan->filters)) {
/* If filters are involved in a read, create field log and run filters */
@@ -227,7 +227,7 @@ static long dbDbGetValue(struct link *plink, short dbrType, void *pbuffer,
return status;
if (pnRequest && *pnRequest <= 0) /* empty array result */
return S_db_badField;
return S_db_emptyArray;
}
if (!status && precord != dbChannelRecord(chan))