ExecSQL doesn't commit

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
louishorn
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 07.07.2011, 22:29

ExecSQL doesn't commit

Post by louishorn »

Lazarus v 0.9.29
MySQL 5

I have the ZConnection component set to autocommit.

I have Zquery component named query 1.

My code looks like this

sql := 'UPDATE GRADELINK SET PROVFLAG = 2 WHERE GRADEID = ''104312245|IWAY|10417''';


with query1 do
begin
Active:=False;
SQL.Clear;
SQL.Add(sql);
ExecSQL;
end;


The code runs fine, but it doesn't update the table. It looks like it is not committing the query.

Does anyone have any ideas?
Dali
Junior Boarder
Junior Boarder
Posts: 30
Joined: 08.02.2010, 14:36

Post by Dali »

Have you checked the RowsAffected property afterwards?
Post Reply