Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,7 @@ public int getTransactionIsolation() throws SQLException {
checkOpen();
switch (this.vtSession.getTransactionIsolation()) {
case DEFAULT:
case AUTOCOMMIT:
return this.getMetaData().getDefaultTransactionIsolation();
case READ_COMMITTED:
return Connection.TRANSACTION_READ_COMMITTED;
Expand Down
4 changes: 4 additions & 0 deletions proto/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,10 @@ message ExecuteOptions {
// This is not an "official" transaction level but it will do a
// START TRANSACTION WITH CONSISTENT SNAPSHOT, READ ONLY
CONSISTENT_SNAPSHOT_READ_ONLY = 5;

// This not an "official" transaction level, it will send queries to mysql
// without wrapping them in a transaction
AUTOCOMMIT = 6;
}

TransactionIsolation transaction_isolation = 9;
Expand Down