Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple insert with transaction is not happening #13

Open
alwinjosh opened this issue Dec 18, 2017 · 6 comments
Open

Simple insert with transaction is not happening #13

alwinjosh opened this issue Dec 18, 2017 · 6 comments
Labels

Comments

@alwinjosh
Copy link

Trying to execute following insert query does not commit transaction due to transaction reference counter is not decremented.

db.update( "INSERT INTO ADDRESS_REL (ADDRESS_ID, ADDRESS_DETAILS ) VALUES ( ?, ? )")
.parameterStream(Flowable.just(105L, "Address of 105"))
.transacted()
.counts()
.blockingSubscribe(tx -> System.out.println(tx.isComplete() ? "complete" : tx.value()));

Do I missed any hint to transaction ?

@davidmoten
Copy link
Owner

davidmoten commented Dec 19, 2017 via email

@davidmoten davidmoten added the bug label Dec 22, 2017
@davidmoten
Copy link
Owner

davidmoten commented Dec 22, 2017

Yep, update/insert transactions need work. That case wasn't tested for. I'll see what I can do, plus I notice that the transactions generally needs more documentation.

davidmoten added a commit that referenced this issue Dec 26, 2017
davidmoten added a commit that referenced this issue Dec 26, 2017
@pkziel
Copy link

pkziel commented Mar 26, 2018

Is it still the problem ? Could you give an example how to make two updates/inserts in one transaction ?

@davidmoten
Copy link
Owner

oops, I'll revisit this

@yonghun8343
Copy link

i have a same problem... is this fixed???

@davidmoten
Copy link
Owner

Thanks for the reminder. I guess it's not fixed yet, I'll have a look soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants