-
-
Notifications
You must be signed in to change notification settings - Fork 48
Closed
Labels
Milestone
Description
i'm trying using mysql/mariadb,
and test this simple command in demo,
select connection_id()
result always change, if you use mysql client or heidisql etc, connection id is always same until new connection create/broken
if use use this method, (i'm talk about single command not batchsql), whats happen ???
OpenSQL('set autocommit=0');
try
try
if NOT OpenSQL('update stok where qty=1') then //update with no autocommit
raise Exception.Create('error');
if NOT OpenSQL('updateS produk where stokqty=x') then //trying send wrong sql, what happen with previous sql, rollback or commit ?
raise Exception.Create('error');
if NOT OpenSQL('Commit') then
raise Exception.Create('error');
except
if NOT OpenSQL('rollback') then
raise Exception.Create('error');
end;
finally
OpenSQL('set autocommit=1');
end;
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done