Skip to content

jdbc: Support transaction savepoints #177

Open

Description

@nicktorwald

Related methods:

  • Connection.releaseSavepoint(Savepoint)
  • Connection.rollback(Savepoint)
  • Connection.setSavepoint()
  • Connection.setSavepoint(String)
  • DatabaseMetaData.supportsSavepoints()

Related classes:

  • Savepoint

An example:

conn.createStatement();
int rows = stmt.executeUpdate("INSERT INTO TAB1 (COL1) VALUES (’FIRST’)");
Savepoint svpt1 = conn.setSavepoint("SAVEPOINT_1");
rows = stmt.executeUpdate("INSERT INTO TAB1 (COL1) VALUES (’SECOND’)");
conn.rollback(svpt1);
conn.commit();

Activity

  1. Totktonada commented on May 12, 2019

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedNot ready to be implementedjdbc

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions