Open
Conversation
Bumps [sequel_pg](https://github.com/jeremyevans/sequel_pg) from 1.18.2 to 1.19.0. - [Changelog](https://github.com/jeremyevans/sequel_pg/blob/master/CHANGELOG) - [Commits](jeremyevans/sequel_pg@1.18.2...1.19.0) --- updated-dependencies: - dependency-name: sequel_pg dependency-version: 1.19.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Contributor
4 similar comments
Contributor
Contributor
Contributor
Contributor
Contributor
gem compare sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT require_paths:
1.18.2: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.18.2", "lib"]
1.19.0: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.19.0", "lib"]
DIFFERENT rubygems_version:
1.18.2: 3.6.9
1.19.0: 4.0.3
DIFFERENT version:
1.18.2: 1.18.2
1.19.0: 1.19.0
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0
ext/sequel_pg/extconf.rb +1/-0
ext/sequel_pg/sequel_pg.c +34/-2
DIFFERENT extra_rdoc_files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0 |
4 similar comments
Contributor
gem compare sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT require_paths:
1.18.2: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.18.2", "lib"]
1.19.0: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.19.0", "lib"]
DIFFERENT rubygems_version:
1.18.2: 3.6.9
1.19.0: 4.0.3
DIFFERENT version:
1.18.2: 1.18.2
1.19.0: 1.19.0
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0
ext/sequel_pg/extconf.rb +1/-0
ext/sequel_pg/sequel_pg.c +34/-2
DIFFERENT extra_rdoc_files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0 |
Contributor
gem compare sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT require_paths:
1.18.2: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.18.2", "lib"]
1.19.0: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.19.0", "lib"]
DIFFERENT rubygems_version:
1.18.2: 3.6.9
1.19.0: 4.0.3
DIFFERENT version:
1.18.2: 1.18.2
1.19.0: 1.19.0
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0
ext/sequel_pg/extconf.rb +1/-0
ext/sequel_pg/sequel_pg.c +34/-2
DIFFERENT extra_rdoc_files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0 |
Contributor
gem compare sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT require_paths:
1.18.2: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.18.2", "lib"]
1.19.0: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.19.0", "lib"]
DIFFERENT rubygems_version:
1.18.2: 3.6.9
1.19.0: 4.0.3
DIFFERENT version:
1.18.2: 1.18.2
1.19.0: 1.19.0
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0
ext/sequel_pg/extconf.rb +1/-0
ext/sequel_pg/sequel_pg.c +34/-2
DIFFERENT extra_rdoc_files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0 |
Contributor
gem compare sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT require_paths:
1.18.2: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.18.2", "lib"]
1.19.0: ["/opt/hostedtoolcache/Ruby/4.0.1/x64/lib/ruby/gems/4.0.0/extensions/x86_64-linux/4.0.0/sequel_pg-1.19.0", "lib"]
DIFFERENT rubygems_version:
1.18.2: 3.6.9
1.19.0: 4.0.3
DIFFERENT version:
1.18.2: 1.18.2
1.19.0: 1.19.0
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0
ext/sequel_pg/extconf.rb +1/-0
ext/sequel_pg/sequel_pg.c +34/-2
DIFFERENT extra_rdoc_files:
1.18.2->1.19.0:
* Changed:
CHANGELOG +4/-0 |
Contributor
gem compare --diff sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG
--- /tmp/d20260309-606-rbfxun/sequel_pg-1.18.2/CHANGELOG 2026-03-09 03:33:11.247007290 +0000
+++ /tmp/d20260309-606-rbfxun/sequel_pg-1.19.0/CHANGELOG 2026-03-09 03:33:11.249007306 +0000
@@ -0,0 +1,4 @@
+=== 1.19.0 (2026-03-06)
+
+* Cancel the query if an exception is raised while streaming query results (jtmkrueger, jeremyevans) (#66)
+
ext/sequel_pg/extconf.rb
--- /tmp/d20260309-606-rbfxun/sequel_pg-1.18.2/ext/sequel_pg/extconf.rb 2026-03-09 03:33:11.248007298 +0000
+++ /tmp/d20260309-606-rbfxun/sequel_pg-1.19.0/ext/sequel_pg/extconf.rb 2026-03-09 03:33:11.249007306 +0000
@@ -12,0 +13 @@
+ have_func 'PQcancelCreate'
ext/sequel_pg/sequel_pg.c
--- /tmp/d20260309-606-rbfxun/sequel_pg-1.18.2/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:11.248007298 +0000
+++ /tmp/d20260309-606-rbfxun/sequel_pg-1.19.0/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:11.250007314 +0000
@@ -1 +1 @@
-#define SEQUEL_PG_VERSION_INTEGER 11802
+#define SEQUEL_PG_VERSION_INTEGER 11900
@@ -2006,0 +2007,32 @@
+ /* Only cancel if an exception is being unwound. During normal
+ * completion, the query has already finished and there are no
+ * results to drain, so canceling is unnecessary. */
+ if (rb_errinfo() != Qnil) {
+#ifdef HAVE_PQCANCELCREATE
+ PGcancelConn *cancel = PQcancelCreate(conn);
+ if (cancel) {
+ int cancel_ok = PQcancelBlocking(cancel);
+ PQcancelFinish(cancel);
+#else
+ PGcancel *cancel = PQgetCancel(conn);
+ if (cancel) {
+ char errbuf[256];
+ int cancel_ok = PQcancel(cancel, errbuf, sizeof(errbuf));
+ PQfreeCancel(cancel);
+#endif
+
+ if (cancel_ok) {
+ /* Cancel succeeded. Drain remaining results without raising.
+ * The cancel produces an expected error result ("canceling
+ * statement due to user request"). The original exception
+ * will propagate via rb_ensure. */
+ while ((res = PQgetResult(conn)) != NULL) {
+ PQclear(res);
+ }
+ return rconn;
+ }
+ /* Cancel failed. Fallthrough to the normal drain loop which
+ * will check for and report any real errors. */
+ }
+ }
+
@@ -2022 +2054 @@
-
+ |
Contributor
gem compare --diff sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG
--- /tmp/d20260309-368-yog81f/sequel_pg-1.18.2/CHANGELOG 2026-03-09 03:33:11.453984376 +0000
+++ /tmp/d20260309-368-yog81f/sequel_pg-1.19.0/CHANGELOG 2026-03-09 03:33:11.455984399 +0000
@@ -0,0 +1,4 @@
+=== 1.19.0 (2026-03-06)
+
+* Cancel the query if an exception is raised while streaming query results (jtmkrueger, jeremyevans) (#66)
+
ext/sequel_pg/extconf.rb
--- /tmp/d20260309-368-yog81f/sequel_pg-1.18.2/ext/sequel_pg/extconf.rb 2026-03-09 03:33:11.454984387 +0000
+++ /tmp/d20260309-368-yog81f/sequel_pg-1.19.0/ext/sequel_pg/extconf.rb 2026-03-09 03:33:11.455984399 +0000
@@ -12,0 +13 @@
+ have_func 'PQcancelCreate'
ext/sequel_pg/sequel_pg.c
--- /tmp/d20260309-368-yog81f/sequel_pg-1.18.2/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:11.454984387 +0000
+++ /tmp/d20260309-368-yog81f/sequel_pg-1.19.0/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:11.456984410 +0000
@@ -1 +1 @@
-#define SEQUEL_PG_VERSION_INTEGER 11802
+#define SEQUEL_PG_VERSION_INTEGER 11900
@@ -2006,0 +2007,32 @@
+ /* Only cancel if an exception is being unwound. During normal
+ * completion, the query has already finished and there are no
+ * results to drain, so canceling is unnecessary. */
+ if (rb_errinfo() != Qnil) {
+#ifdef HAVE_PQCANCELCREATE
+ PGcancelConn *cancel = PQcancelCreate(conn);
+ if (cancel) {
+ int cancel_ok = PQcancelBlocking(cancel);
+ PQcancelFinish(cancel);
+#else
+ PGcancel *cancel = PQgetCancel(conn);
+ if (cancel) {
+ char errbuf[256];
+ int cancel_ok = PQcancel(cancel, errbuf, sizeof(errbuf));
+ PQfreeCancel(cancel);
+#endif
+
+ if (cancel_ok) {
+ /* Cancel succeeded. Drain remaining results without raising.
+ * The cancel produces an expected error result ("canceling
+ * statement due to user request"). The original exception
+ * will propagate via rb_ensure. */
+ while ((res = PQgetResult(conn)) != NULL) {
+ PQclear(res);
+ }
+ return rconn;
+ }
+ /* Cancel failed. Fallthrough to the normal drain loop which
+ * will check for and report any real errors. */
+ }
+ }
+
@@ -2022 +2054 @@
-
+ |
Contributor
gem compare --diff sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG
--- /tmp/d20260309-336-lha6bc/sequel_pg-1.18.2/CHANGELOG 2026-03-09 03:33:11.933225471 +0000
+++ /tmp/d20260309-336-lha6bc/sequel_pg-1.19.0/CHANGELOG 2026-03-09 03:33:11.934225471 +0000
@@ -0,0 +1,4 @@
+=== 1.19.0 (2026-03-06)
+
+* Cancel the query if an exception is raised while streaming query results (jtmkrueger, jeremyevans) (#66)
+
ext/sequel_pg/extconf.rb
--- /tmp/d20260309-336-lha6bc/sequel_pg-1.18.2/ext/sequel_pg/extconf.rb 2026-03-09 03:33:11.933225471 +0000
+++ /tmp/d20260309-336-lha6bc/sequel_pg-1.19.0/ext/sequel_pg/extconf.rb 2026-03-09 03:33:11.936225473 +0000
@@ -12,0 +13 @@
+ have_func 'PQcancelCreate'
ext/sequel_pg/sequel_pg.c
--- /tmp/d20260309-336-lha6bc/sequel_pg-1.18.2/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:11.933225471 +0000
+++ /tmp/d20260309-336-lha6bc/sequel_pg-1.19.0/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:11.936225473 +0000
@@ -1 +1 @@
-#define SEQUEL_PG_VERSION_INTEGER 11802
+#define SEQUEL_PG_VERSION_INTEGER 11900
@@ -2006,0 +2007,32 @@
+ /* Only cancel if an exception is being unwound. During normal
+ * completion, the query has already finished and there are no
+ * results to drain, so canceling is unnecessary. */
+ if (rb_errinfo() != Qnil) {
+#ifdef HAVE_PQCANCELCREATE
+ PGcancelConn *cancel = PQcancelCreate(conn);
+ if (cancel) {
+ int cancel_ok = PQcancelBlocking(cancel);
+ PQcancelFinish(cancel);
+#else
+ PGcancel *cancel = PQgetCancel(conn);
+ if (cancel) {
+ char errbuf[256];
+ int cancel_ok = PQcancel(cancel, errbuf, sizeof(errbuf));
+ PQfreeCancel(cancel);
+#endif
+
+ if (cancel_ok) {
+ /* Cancel succeeded. Drain remaining results without raising.
+ * The cancel produces an expected error result ("canceling
+ * statement due to user request"). The original exception
+ * will propagate via rb_ensure. */
+ while ((res = PQgetResult(conn)) != NULL) {
+ PQclear(res);
+ }
+ return rconn;
+ }
+ /* Cancel failed. Fallthrough to the normal drain loop which
+ * will check for and report any real errors. */
+ }
+ }
+
@@ -2022 +2054 @@
-
+ |
Contributor
gem compare --diff sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG
--- /tmp/d20260309-424-2sjh10/sequel_pg-1.18.2/CHANGELOG 2026-03-09 03:33:16.809062735 +0000
+++ /tmp/d20260309-424-2sjh10/sequel_pg-1.19.0/CHANGELOG 2026-03-09 03:33:16.810062736 +0000
@@ -0,0 +1,4 @@
+=== 1.19.0 (2026-03-06)
+
+* Cancel the query if an exception is raised while streaming query results (jtmkrueger, jeremyevans) (#66)
+
ext/sequel_pg/extconf.rb
--- /tmp/d20260309-424-2sjh10/sequel_pg-1.18.2/ext/sequel_pg/extconf.rb 2026-03-09 03:33:16.809062735 +0000
+++ /tmp/d20260309-424-2sjh10/sequel_pg-1.19.0/ext/sequel_pg/extconf.rb 2026-03-09 03:33:16.811062737 +0000
@@ -12,0 +13 @@
+ have_func 'PQcancelCreate'
ext/sequel_pg/sequel_pg.c
--- /tmp/d20260309-424-2sjh10/sequel_pg-1.18.2/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:16.810062736 +0000
+++ /tmp/d20260309-424-2sjh10/sequel_pg-1.19.0/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:16.811062737 +0000
@@ -1 +1 @@
-#define SEQUEL_PG_VERSION_INTEGER 11802
+#define SEQUEL_PG_VERSION_INTEGER 11900
@@ -2006,0 +2007,32 @@
+ /* Only cancel if an exception is being unwound. During normal
+ * completion, the query has already finished and there are no
+ * results to drain, so canceling is unnecessary. */
+ if (rb_errinfo() != Qnil) {
+#ifdef HAVE_PQCANCELCREATE
+ PGcancelConn *cancel = PQcancelCreate(conn);
+ if (cancel) {
+ int cancel_ok = PQcancelBlocking(cancel);
+ PQcancelFinish(cancel);
+#else
+ PGcancel *cancel = PQgetCancel(conn);
+ if (cancel) {
+ char errbuf[256];
+ int cancel_ok = PQcancel(cancel, errbuf, sizeof(errbuf));
+ PQfreeCancel(cancel);
+#endif
+
+ if (cancel_ok) {
+ /* Cancel succeeded. Drain remaining results without raising.
+ * The cancel produces an expected error result ("canceling
+ * statement due to user request"). The original exception
+ * will propagate via rb_ensure. */
+ while ((res = PQgetResult(conn)) != NULL) {
+ PQclear(res);
+ }
+ return rconn;
+ }
+ /* Cancel failed. Fallthrough to the normal drain loop which
+ * will check for and report any real errors. */
+ }
+ }
+
@@ -2022 +2054 @@
-
+ |
Contributor
gem compare --diff sequel_pg 1.18.2 1.19.0Compared versions: ["1.18.2", "1.19.0"]
DIFFERENT files:
1.18.2->1.19.0:
* Changed:
CHANGELOG
--- /tmp/d20260309-390-lz1wqe/sequel_pg-1.18.2/CHANGELOG 2026-03-09 03:33:17.737417458 +0000
+++ /tmp/d20260309-390-lz1wqe/sequel_pg-1.19.0/CHANGELOG 2026-03-09 03:33:17.739417451 +0000
@@ -0,0 +1,4 @@
+=== 1.19.0 (2026-03-06)
+
+* Cancel the query if an exception is raised while streaming query results (jtmkrueger, jeremyevans) (#66)
+
ext/sequel_pg/extconf.rb
--- /tmp/d20260309-390-lz1wqe/sequel_pg-1.18.2/ext/sequel_pg/extconf.rb 2026-03-09 03:33:17.737417458 +0000
+++ /tmp/d20260309-390-lz1wqe/sequel_pg-1.19.0/ext/sequel_pg/extconf.rb 2026-03-09 03:33:17.739417451 +0000
@@ -12,0 +13 @@
+ have_func 'PQcancelCreate'
ext/sequel_pg/sequel_pg.c
--- /tmp/d20260309-390-lz1wqe/sequel_pg-1.18.2/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:17.738417454 +0000
+++ /tmp/d20260309-390-lz1wqe/sequel_pg-1.19.0/ext/sequel_pg/sequel_pg.c 2026-03-09 03:33:17.740417447 +0000
@@ -1 +1 @@
-#define SEQUEL_PG_VERSION_INTEGER 11802
+#define SEQUEL_PG_VERSION_INTEGER 11900
@@ -2006,0 +2007,32 @@
+ /* Only cancel if an exception is being unwound. During normal
+ * completion, the query has already finished and there are no
+ * results to drain, so canceling is unnecessary. */
+ if (rb_errinfo() != Qnil) {
+#ifdef HAVE_PQCANCELCREATE
+ PGcancelConn *cancel = PQcancelCreate(conn);
+ if (cancel) {
+ int cancel_ok = PQcancelBlocking(cancel);
+ PQcancelFinish(cancel);
+#else
+ PGcancel *cancel = PQgetCancel(conn);
+ if (cancel) {
+ char errbuf[256];
+ int cancel_ok = PQcancel(cancel, errbuf, sizeof(errbuf));
+ PQfreeCancel(cancel);
+#endif
+
+ if (cancel_ok) {
+ /* Cancel succeeded. Drain remaining results without raising.
+ * The cancel produces an expected error result ("canceling
+ * statement due to user request"). The original exception
+ * will propagate via rb_ensure. */
+ while ((res = PQgetResult(conn)) != NULL) {
+ PQclear(res);
+ }
+ return rconn;
+ }
+ /* Cancel failed. Fallthrough to the normal drain loop which
+ * will check for and report any real errors. */
+ }
+ }
+
@@ -2022 +2054 @@
-
+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Bumps sequel_pg from 1.18.2 to 1.19.0.
Changelog
Sourced from sequel_pg's changelog.
Commits
c6459b7Bump version to 1.19.08cdb792Use PQcancelCreate if available13ad4deAdd comprehensive tests for streaming query cancellationd4400e0Cancel in-progress query before draining results on streaming interrupt9ab60aaAdd PQgetCancel detection to extconfa158ccdAdd Ruby 4.0 to CIDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)