[pgjdbc/pgjdbc] 539a09: Fix exception on PGCopyOutputStream.close() after ...

From: Igor Volkov <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] 539a09: Fix exception on PGCopyOutputStream.close() after ...
Date: 2019-11-12 22:21:05
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/9b8a3f-539a09@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: 539a09258f6009581785474fe5f15a46992ade6f
https://github.com/pgjdbc/pgjdbc/commit/539a09258f6009581785474fe5f15a46992ade6f
Author: Igor Volkov <1859437+virtual-machinist(at)users(dot)noreply(dot)github(dot)com>
Date: 2019-11-12 (Tue, 12 Nov 2019)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/copy/PGCopyOutputStream.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc2/CopyTest.java

Log Message:
-----------
Fix exception on PGCopyOutputStream.close() after endCopy() (#1574) (#1575)

* Fix: check if active before close() (#1574)

* Fix: NPEs on flush() and isActive() if copy has ended

* Tests for close(), flush(), isActive()

Browse pgsql-jdbc by date

  From Date Subject
Next Message Sehrope Sarkuni 2019-11-13 23:41:12 [pgjdbc/pgjdbc] c99ed1: fix: Update error message for COPY commands execut...
Previous Message Dave Cramer 2019-11-12 22:03:54 [pgjdbc/pgjdbc] 9b8a3f: fix: issue 716 getTypeInfo() may not return data i...