mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-18 07:09:09 +02:00
- check for editable state in SetFieldData
This commit is contained in:
parent
37a0e8db97
commit
734aa62d36
@ -421,6 +421,11 @@ var
|
||||
FieldUpdBuf : PFieldUpdateBuffer;
|
||||
|
||||
begin
|
||||
if not (state in [dsEdit, dsInsert]) then
|
||||
begin
|
||||
DatabaseErrorFmt(SNotInEditState,[NAme],self);
|
||||
exit;
|
||||
end;
|
||||
If Field.Fieldno > 0 then // If = 0, then calculated field or something
|
||||
begin
|
||||
CurrBuff := ActiveBuffer;
|
||||
|
Loading…
Reference in New Issue
Block a user