Skip to content

Commit

Permalink
backpatch 42.4.x for changes to 42.5.1 (#2675)
Browse files Browse the repository at this point in the history
  • Loading branch information
davecramer committed Nov 23, 2022
1 parent 389be0a commit 34855cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Expand Up @@ -13,7 +13,7 @@ kotlin.code.style=official
# This is version for PgJdbc itself
# Note: it should not include "-SNAPSHOT" as it is automatically added by build.gradle.kts
# Release version can be generated by using -Prelease or -Prc=<int> arguments
pgjdbc.version=42.4.2
pgjdbc.version=42.4.3

# The options below configures the use of local clone (e.g. testing development versions)
# You can pass un-comment it, or pass option -PlocalReleasePlugins, or -PlocalReleasePlugins=<path>
Expand Down
3 changes: 2 additions & 1 deletion pgjdbc/src/main/java/org/postgresql/util/StreamWrapper.java
Expand Up @@ -17,6 +17,7 @@
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.nio.file.Files;

/**
* Wrapper around a length-limited InputStream.
Expand Down Expand Up @@ -51,7 +52,7 @@ public StreamWrapper(InputStream stream) throws PSQLException {

if (memoryLength == -1) {
final int diskLength;
final File tempFile = File.createTempFile(TEMP_FILE_PREFIX, null);
final File tempFile = Files.createTempFile(TEMP_FILE_PREFIX, null).toFile();
FileOutputStream diskOutputStream = new FileOutputStream(tempFile);
diskOutputStream.write(rawData);
try {
Expand Down

0 comments on commit 34855cf

Please sign in to comment.