Skip to content

Concurrent transaction progress #2

@Enelar

Description

@Enelar
$t1 = db::Begin();
$t2 = db::Begin();
$t2->Query("--action to be rolled back");
$t1->Query("--action to be commited");
$t2->Rollback();
$t1->Commit();

Will be executed as

BEGIN;
SAVEPOINT 1;
--action to be rolled back
--action to be commited
ROLLBACK TO SAVEPOINT 1;
--action to be commited
COMMIT;

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions