summaryrefslogtreecommitdiff
path: root/src/interfaces/jdbc/postgresql/fastpath/Fastpath.java
diff options
context:
space:
mode:
authorMarc G. Fournier1998-02-02 13:17:01 +0000
committerMarc G. Fournier1998-02-02 13:17:01 +0000
commit4e9dd952966b600951f05ab2913b5b97936d42ba (patch)
tree9f0fada5717856c244f94f19f9a3829a4c21270e /src/interfaces/jdbc/postgresql/fastpath/Fastpath.java
parent67c92f423aae5bb2500b7dffb0fc2a4267d2e546 (diff)
From: Peter T Mount <[email protected]>
[This is a repost - it supercedes the previous one. It fixes the patch so it doesn't bread aix port, plus there's a file missing out of the original post because difforig doesn't pick up new files. It's now attached. peter] This patch brings the JDBC driver up to the current protocol spec. Basically, the backend now tells the driver what authentication scheme to use. The patch also fixes a performance problem with large objects. In the buffer manager, each fastpath call was sending multiple Notifications to the backend (sometimes more data in the form of notifications were being sent than blob data!).
Diffstat (limited to 'src/interfaces/jdbc/postgresql/fastpath/Fastpath.java')
-rw-r--r--src/interfaces/jdbc/postgresql/fastpath/Fastpath.java10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/interfaces/jdbc/postgresql/fastpath/Fastpath.java b/src/interfaces/jdbc/postgresql/fastpath/Fastpath.java
index ce278acef71..fdb68686554 100644
--- a/src/interfaces/jdbc/postgresql/fastpath/Fastpath.java
+++ b/src/interfaces/jdbc/postgresql/fastpath/Fastpath.java
@@ -75,8 +75,10 @@ public class Fastpath
stream.SendInteger(70,1);
stream.SendInteger(0,1);
- stream.SendIntegerReverse(fnid,4);
- stream.SendIntegerReverse(args.length,4);
+ //stream.SendIntegerReverse(fnid,4);
+ //stream.SendIntegerReverse(args.length,4);
+ stream.SendInteger(fnid,4);
+ stream.SendInteger(args.length,4);
for(int i=0;i<args.length;i++)
args[i].send(stream);
@@ -114,12 +116,12 @@ public class Fastpath
// Function returned properly
//
case 'G':
- int sz = stream.ReceiveInteger(4);
+ int sz = stream.ReceiveIntegerR(4);
DriverManager.println("G: size="+sz); //debug
// Return an Integer if
if(resulttype)
- result = new Integer(stream.ReceiveInteger(sz));
+ result = new Integer(stream.ReceiveIntegerR(sz));
else {
byte buf[] = new byte[sz];
stream.Receive(buf,0,sz);