Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 04c5dbb5058008a8ddad0194156af9819595c315
https://github.com/pgjdbc/pgjdbc/commit/04c5dbb5058008a8ddad0194156af9819595c315
Author: Vladimir Sitnikov <sitnikov.vladimir@gmail.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.vladimir@gmail.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