From: | Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | [pgjdbc/pgjdbc] 04c5db: fix: prevent statement hang in case close() called... |
Date: | 2017-11-27 16:14:18 |
Message-ID: | 5a1c39da6bdd6_6b153f8de5c0dc2898434@hookshot-fe1-cp1-prd.iad.github.net.mail |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 04c5dbb5058008a8ddad0194156af9819595c315
https://github.com/pgjdbc/pgjdbc/commit/04c5dbb5058008a8ddad0194156af9819595c315
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2017-11-27 (Mon, 27 Nov 2017)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
M pgjdbc/src/main/java/org/postgresql/util/PSQLState.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/StatementTest.java
Log Message:
-----------
fix: prevent statement hang in case close() called when query is in progress
Note: Statement#close() is still not thread-safe, however it is much more robust with the fix
fixes #1022
Commit: 41392481d5f2c7f89d783a535ade2d3afb565654
https://github.com/pgjdbc/pgjdbc/commit/41392481d5f2c7f89d783a535ade2d3afb565654
Author: Vladimir Sitnikov <sitnikov(dot)vladimir(at)gmail(dot)com>
Date: 2017-11-27 (Mon, 27 Nov 2017)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgCallableStatement.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java
M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java
Log Message:
-----------
fix: synchronize Statement#result field access to make #close() more thread-safe
Compare: https://github.com/pgjdbc/pgjdbc/compare/8ba58418ae10...41392481d5f2
From | Date | Subject | |
---|---|---|---|
Next Message | Vladimir Sitnikov | 2017-11-28 08:37:36 | [pgjdbc/pgjdbc] fd0eee: fix: avoid reflective access to TimeZone.defaultTi... |
Previous Message | Michael Paquier | 2017-11-26 11:59:43 | Re: [JDBC] [HACKERS] Channel binding support for SCRAM-SHA-256 |