vertx-sql-client icon indicating copy to clipboard operation
vertx-sql-client copied to clipboard

Allow a way to set the transaction isolation level.

Open dc-dream11 opened this issue 4 years ago • 9 comments

Right now I am achieving it by passing sessionVariables=tx_isolation='READ-COMMITTED' in connection string. It would be great if lib provides a way

dc-dream11 avatar Aug 02 '21 04:08 dc-dream11

@dc-dream11 which database are you talking about ?

vietj avatar Aug 02 '21 07:08 vietj

Isn't this issue a dupe? I think we already have an issue requesting this feature (it's one we want too).

gavinking avatar Aug 02 '21 09:08 gavinking

It's #432 I guess.

gavinking avatar Aug 02 '21 09:08 gavinking

Thanks for the quick reply, Is there a tentative date by which this feature will be released? Also, is there any way currently by which we can set the isolation level?

dc-dream11 avatar Aug 02 '21 10:08 dc-dream11

@dc-dream11 which database are you talking about ?

@vietj I am talking about MySQL database

dc-dream11 avatar Aug 02 '21 10:08 dc-dream11

is setting isolation level something that is specific to each database or is there a common way of changing it ?

vietj avatar Aug 02 '21 13:08 vietj

I am not really sure about this.

dc-dream11 avatar Aug 02 '21 13:08 dc-dream11

is setting isolation level something that is specific to each database or is there a common way of changing it ?

@vietj see https://github.com/eclipse-vertx/vertx-sql-client/issues/432#issuecomment-628667597

gavinking avatar Aug 02 '21 14:08 gavinking

For reference, this is the corresponding issue on HR: https://github.com/hibernate/hibernate-reactive/issues/875

gavinking avatar Aug 02 '21 14:08 gavinking