Page 1 of 1

Problem updating to Tokyo with tUniQuery (MSSQL)

Posted: Sun 16 Sep 2018 11:07
by vicens
Hi,

Using the same code, the update of a registry works perfectly with Delphi Berlin, but when compiling with Delphi Tokyo the registry is not updated and I can't recover error code using the exception.
I've tryied executing from Windows and from Android device.

In Delphi Berlin use v. 6.4.16
In Delphi Tokyo use v. 7.2.7

This is the code:

uQUsuarios.Close;
uQUsuarios.sql.Text := 'select * from usuarios where nId=' + nIdUsuarioActivo.toString;
uQUsuarios.Open;
if uQUsuarios.RecordCount > 0 then
begin
uQUsuarios.Edit;
uQUsuarios.FieldByName('lSesion').value := true;
uQUsuarios.FieldByName('Sesion_id').value := cNameDevice;
try
uQUsuarios.Post;
except
on e: exception do
showmessage(e.message) ;
end;

Thanks for any help.

Re: Problem updating to Tokyo with tUniQuery (MSSQL)

Posted: Mon 17 Sep 2018 14:37
by Stellar
Unfortunately, we can't reproduce the issue. To investigate this behavior of UniDAC, please compose a small sample demonstrating the issue and send it to us, including database objects creating scripts. You can send the project using the contact form at our website:
devart.com/company/contactform.html .