1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-16 06:01:02 +03:00

This patch merges the identical methods from the JDBC1 and JDBC2

connection implementations (org.postgresql.jdbc[1|2].Connection) into
their superclass (org.postgresql.Connection).

It also changes the close() methods of Connection and PG_Stream, so that
PG_Stream no longer is responsible for sending the termination packet 'X'
to the backend. I figured that protocol-level stuff like that belonged in
Connection more than in PG_Stream.

Anders Bengtsson
This commit is contained in:
Bruce Momjian
2001-07-30 14:51:19 +00:00
parent 462b7d46d1
commit 509f5d241a
4 changed files with 239 additions and 476 deletions

View File

@ -10,7 +10,7 @@ import org.postgresql.core.*;
import org.postgresql.util.*;
/**
* $Id: PG_Stream.java,v 1.10 2001/07/21 18:52:10 momjian Exp $
* $Id: PG_Stream.java,v 1.11 2001/07/30 14:51:19 momjian Exp $
*
* This class is used by Connection & PGlobj for communicating with the
* backend.
@ -346,8 +346,6 @@ public class PG_Stream
*/
public void close() throws IOException
{
pg_output.write("X".getBytes());
pg_output.flush();
pg_output.close();
pg_input.close();
connection.close();