Skip to content

Commit 08ea624

Browse files
author
Peter Mount
committed
Encoding patch to Connection by wrobell@posexperts.com.pl
1 parent a221d95 commit 08ea624

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/interfaces/jdbc/CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
Mon Nov 20 08:12:00 GMT 2000 peter@retep.org.uk
2+
- Encoding patch to Connection by wrobell@posexperts.com.pl
3+
14
Tue Oct 17 15:35:00 BST 2000 petermount@maidstone.gov.uk
25
- Changed getTimestamp() again. This time Michael Stephenson's
36
<mstephenson@tirin.openworld.co.uk> solution looked far better

src/interfaces/jdbc/org/postgresql/Connection.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import org.postgresql.util.*;
1111

1212
/**
13-
* $Id: Connection.java,v 1.9 2000/10/12 08:55:24 peter Exp $
13+
* $Id: Connection.java,v 1.10 2000/11/20 08:15:30 peter Exp $
1414
*
1515
* This abstract class is used by org.postgresql.Driver to open either the JDBC1 or
1616
* JDBC2 versions of the Connection class.
@@ -363,8 +363,7 @@ public java.sql.ResultSet ExecSQL(String sql) throws SQLException
363363
try
364364
{
365365
pg_stream.SendChar('Q');
366-
buf = sql.getBytes();
367-
pg_stream.Send(sql.getBytes());
366+
pg_stream.Send(buf);
368367
pg_stream.SendChar(0);
369368
pg_stream.flush();
370369
} catch (IOException e) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy