Firebird 2.1 Embedded, error -501 on close
Posted: 27.03.2013, 15:44
Hi,
I use Firebird 2.1 embedded (protocol: firebirdd_2.1) and in this code:
get error -501 on the last close.
On Firebird 2.1 server (protocol firebird_2.1) it is ok.
Can someone help me where is problem and how to correct it?
I'm using version 7.0.3-stable and XE.
Thanks in advance.
I use Firebird 2.1 embedded (protocol: firebirdd_2.1) and in this code:
Code: Select all
With TZReadOnlyQuery.create(nil) do begin
Connection:=ZConnection2;
Close;
with UserPropertyForm do begin
SQL.Clear;
SQL.Add('Insert InTo SPRAVCI (UserName,UserPass) values('''+NewUserEdit.text+''','''+NewPasswordEdit.text+''') returning IDSpravci;');
Open;
Result:=FieldByName('Idspravci').asInteger;
end;
close;
Free;
end; //with ReadOnlyQuery
On Firebird 2.1 server (protocol firebird_2.1) it is ok.
Can someone help me where is problem and how to correct it?
I'm using version 7.0.3-stable and XE.
Thanks in advance.