Hi 2 All,
Using Laz1.2.2 fpc2.6.4 and Laz1.2 fpc2.6.2 has differences that are not told.
Here is what has happened, I have a project, that was successfully managing data over MariaDB Tables using Laz1.2, until I upgraded to Laz1.2.2 then I noticed that, changing the data does not take effect on the server, instead it effects only the local view and upon restarting, the data reverts back (i.e. changes undone).
Just to give an example of how I am doing it:
with TSQLQuery.Create(nil) do
begin
try
DataBase:=MySQL55Connection1;
SQL.Clear;
SQL.Add('insert into MyTable (aID, aName) values(:aID, :aName);'); //update is performed using the same scenario
ParamByName('aID').AsInteger:=1;
ParamByName('aName').AsString:='Name';
ExecSQL;
finally
Close;
Free;
end;
end;Sample application attached.
The bizarre behavior is, when refreshing data, or simply select over a table. That does not bring up the actual data (i.e. it does not show any changes that has been done by another application).
And, yes, I am sure the changes by the other application has been posted, in case someone asks.
I have double checked changing the data by the Application from Laz1.2 that posts the changes to the DB, while same application compiled with Laz1.2.2 fails to show the changes even when refreshing or performing (Select * from table), it keeps showing the local view only.
The question is, is there any new settings that am missing?
I read that the only new feature that was introduced is AutoCommit=False, but if I read correctly that was for ODBCConnection only, however that shouldn't be the case even if AutoCommit is off.
Am I missing something here?