Commit 08ea624a authored by Peter Mount's avatar Peter Mount

Encoding patch to Connection by wrobell@posexperts.com.pl

parent a221d95f
Mon Nov 20 08:12:00 GMT 2000 peter@retep.org.uk
- Encoding patch to Connection by wrobell@posexperts.com.pl
Tue Oct 17 15:35:00 BST 2000 petermount@maidstone.gov.uk Tue Oct 17 15:35:00 BST 2000 petermount@maidstone.gov.uk
- Changed getTimestamp() again. This time Michael Stephenson's - Changed getTimestamp() again. This time Michael Stephenson's
<mstephenson@tirin.openworld.co.uk> solution looked far better <mstephenson@tirin.openworld.co.uk> solution looked far better
......
...@@ -10,7 +10,7 @@ import org.postgresql.largeobject.*; ...@@ -10,7 +10,7 @@ import org.postgresql.largeobject.*;
import org.postgresql.util.*; import org.postgresql.util.*;
/** /**
* $Id: Connection.java,v 1.9 2000/10/12 08:55:24 peter Exp $ * $Id: Connection.java,v 1.10 2000/11/20 08:15:30 peter Exp $
* *
* This abstract class is used by org.postgresql.Driver to open either the JDBC1 or * This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
* JDBC2 versions of the Connection class. * JDBC2 versions of the Connection class.
...@@ -363,8 +363,7 @@ public abstract class Connection ...@@ -363,8 +363,7 @@ public abstract class Connection
try try
{ {
pg_stream.SendChar('Q'); pg_stream.SendChar('Q');
buf = sql.getBytes(); pg_stream.Send(buf);
pg_stream.Send(sql.getBytes());
pg_stream.SendChar(0); pg_stream.SendChar(0);
pg_stream.flush(); pg_stream.flush();
} catch (IOException e) { } catch (IOException e) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment