Skip to content

Session connection #105

Description

@irwanto82

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;

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions