Comments (3)
Thanks for the report. I'll look into this right away.
from sequel.
I pushed a fix, can you test the master branch and confirm whether it fixes the issue for you? I didn't make a change to the generic jdbc adapter, because I found this issue occurs both for the ibmdb adapter and the jdbc/db2, so I handled it in the shared DB2 support. I think the change you are proposing for the generic jdbc adapter makes sense though, but I'll probably wait on that until next week.
from sequel.
Hi @jeremyevans!
Thank you very much for your quick response and fix!
I've tested it locally using the master branch and the problem was solved. Sequel successfully detected the database disconnection and discarded the stale connection from the pool :)
from sequel.
Related Issues (20)
- connection_validator plugin: "undefined method `sync'" bug on single threaded connection HOT 5
- Broken Update behavior on sequel version 5.56.0 HOT 2
- wrong number of arguments (given 1, expected 0) (ArgumentError) on JRuby 9.4.2.0 & 9.4.3.0 HOT 2
- Ruby 3+ prevents passing parameters to `.clone()` HOT 1
- `search_path` on PogstgreSQL 15 is empty when using raw statements HOT 3
- bigdecimal dependency breaks installation on JRuby HOT 12
- Model.update_or_create raises Sequel::UniqueConstraintViolation HOT 2
- schema doesn't show generated columns in Sqlite HOT 1
- Automatic primary key id assignment does not seem to happen using the mock database adapter HOT 4
- Inconsistent interface of #paged_each / skip_transaction: true not working on postgres for #paged_each HOT 2
- Mysql2::Error: Authentication plugin 'caching_sha2_password' cannot be loaded: /usr/lib/x86_64-linux-gnu/mariadb18/plugin/caching_sha2_password.so HOT 1
- table_exists? returns false when its query gets canceled HOT 2
- Error during evaluation of Ruby in uri:classloader:/META-INF/jruby.home/lib/ruby/gems/shared/gems/sequel-5.74.0/lib/sequel/database/misc.rb at line 462: (DatabaseError) Java::JavaSql::SQLException: A string constant starting with ''' is too long. HOT 1
- Connects to Snowflake but crashes when querying HOT 4
- DB.literal :symbol should not quote "symbol" HOT 4
- insert_conflict on id (SQLite 3.45.0) HOT 2
- pg_enum extension breaks rake db:create HOT 3
- adapter/jdbc does not reconnect when Sybase raises "connection is already closed" HOT 3
- Partial Indices are not migrated from Sqlite to Postgres HOT 1
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 sequel.