Skip to content

Commit def6cdb

Browse files
committed
better error for dbPutString() to DBF_NOACCESS
1 parent 7236f3a commit def6cdb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/database/src/ioc/dbStatic/dbStaticLib.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2637,7 +2637,9 @@ long dbPutString(DBENTRY *pdbentry,const char *pstring)
26372637
}
26382638
}
26392639
break;
2640-
2640+
case DBF_NOACCESS:
2641+
dbMsgPrint(pdbentry, "Can't set array field before iocInit()");
2642+
/* fall through */
26412643
default:
26422644
return S_dbLib_badField;
26432645
}

0 commit comments

Comments
 (0)