Hi EveryOne
I'm relatively new to Lazarus but an old Delphi addept. I came across a problem i can't tackle. The Following code makes a temporarely change in a DBGRid but not in the underlying table.
With DataModule1.SQLQuery1 do
begin
Close;
SQL.Clear;
SQL.Add('INSERT INTO OETabel (OETabelId, OETabelNaam, OETabelParent) VALUES (NULL, "Test", "Test")');
ExecSQL;
SQL.Clear;
SQL.Add('SELECT * FROM OETabel');
ExecSQL;
Open;
end;
The Query itself works fine in MySQL workbench and it shows that the autoinc. id field is incremented too. But the table (OETabel) is not affected. Like there is missing a Post command in old Delphi.
Any help would be much appreciated