Problem updating to Tokyo with tUniQuery (MSSQL)

Discussion of open issues, suggestions and bugs regarding SDAC (SQL Server Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
vicens
Posts: 3
Joined: Sun 17 Jan 2016 11:37

Problem updating to Tokyo with tUniQuery (MSSQL)

Post by vicens » Sun 16 Sep 2018 11:07

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.

Stellar
Devart Team
Posts: 496
Joined: Tue 03 Oct 2017 11:00

Re: Problem updating to Tokyo with tUniQuery (MSSQL)

Post by Stellar » Mon 17 Sep 2018 14:37

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 .

Post Reply