From: Peter Eisentraut Date: Fri, 6 Jul 2001 18:01:22 +0000 (+0000) Subject: Terminate message doesn't have a trailing zero byte. X-Git-Tag: REL7_2_BETA1~914 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cff024120ab8e7f5f4f6f96d5f40b6011beebec6;p=postgresql Terminate message doesn't have a trailing zero byte. --- diff --git a/src/interfaces/jdbc/org/postgresql/PG_Stream.java b/src/interfaces/jdbc/org/postgresql/PG_Stream.java index fb97d3a24b..44d84a8e5a 100644 --- a/src/interfaces/jdbc/org/postgresql/PG_Stream.java +++ b/src/interfaces/jdbc/org/postgresql/PG_Stream.java @@ -383,7 +383,7 @@ public class PG_Stream */ public void close() throws IOException { - pg_output.write("X\0".getBytes()); + pg_output.write("X".getBytes()); pg_output.flush(); pg_output.close(); pg_input.close(); @@ -391,4 +391,3 @@ public class PG_Stream } } -