Skip to content

Commit

Permalink
better error for dbPutString() to DBF_NOACCESS
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavidsaver committed Dec 27, 2024
1 parent 1699489 commit b467b27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/database/src/ioc/dbStatic/dbStaticLib.c
Original file line number Diff line number Diff line change
Expand Up @@ -2637,7 +2637,9 @@ long dbPutString(DBENTRY *pdbentry,const char *pstring)
}
}
break;

case DBF_NOACCESS:
dbMsgPrint(pdbentry, "Can't set array field before iocInit()");
/* fall through */
default:
return S_dbLib_badField;
}
Expand Down

0 comments on commit b467b27

Please sign in to comment.