Comments (7)
In follow up I'd like to add I've discovered another situation in which a connection is leaked, namely on db.execute
and db.insert
when the query results in a SQLException. I will try to upload a MVC example soon.
from rxkotlin-jdbc.
Okay, I'm on vacation but I'll look at it when I get back in a few days. If you can please confirm it's not an issue with Hikari or the MySQL driver and that it is RxKotlin-JDBC that is the source of the issue
from rxkotlin-jdbc.
Hmm... yes there is something that doesn't look right here when comparing the implementation of insert()
and execute()
. The insert()
relies on the iterator of toObservable()
to close the connection whereas the execute()
does nothing with the autoClose
argument. I'll take care of this.
from rxkotlin-jdbc.
@Warkst Alright, I implemented a fix. Can you test a build? You can use JitPack to bring this in as a dependency:
https://jitpack.io/#thomasnield/rxkotlin-jdbc/596332118a
from rxkotlin-jdbc.
Thanks @thomasnield for looking into this. I'm still experiencing connection leaks when something like
db.execute("some pre-built insert statement").toSingle().blockingGet()
results in an exception.
from rxkotlin-jdbc.
Hi!
Has this issue been resolved yet?
from rxkotlin-jdbc.
Any updates on this??
from rxkotlin-jdbc.
Related Issues (11)
- Release 0.1 version on Maven
- Unexpected behavior of InsertOperation.parameters HOT 6
- rxkotlin 3 and Kotlin 4.1.10
- Support named parameters
- Issues with nameless parameters HOT 3
- Add asList() and asMap() operators HOT 1
- Support Date and Timestamp in parameter processing
- Add toPipeline() HOT 4
- Allow reuse of SelectOperation, InsertOperation, UpdateOperation
- Implement batching
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rxkotlin-jdbc.