Skip to content

Commit 9dddd24

Browse files
author
Dave Cramer
committed
revoked patch from Kris Jurka to fix multiarguments, and changed test to create
a temp table
1 parent e4955c2 commit 9dddd24

File tree

2 files changed

+9
-12
lines changed

2 files changed

+9
-12
lines changed

src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* Copyright (c) 2003, PostgreSQL Global Development Group
77
*
88
* IDENTIFICATION
9-
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java,v 1.18 2003/12/17 15:38:42 davec Exp $
9+
* $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java,v 1.19 2003/12/17 15:45:05 davec Exp $
1010
*
1111
*-------------------------------------------------------------------------
1212
*/
@@ -78,22 +78,19 @@ private Object fastpathV3(int fnid, boolean resulttype, FastpathArg[] args) thro
7878
// send the function call
7979
try
8080
{
81-
int l_msgLen = 14;
82-
for (int i=0; i < args.length; i++) {
83-
l_msgLen += 2;
81+
int l_msgLen = 0;
82+
l_msgLen += 16;
83+
for (int i=0;i < args.length;i++)
8484
l_msgLen += args[i].sendSize();
85-
}
8685

8786
stream.SendChar('F');
8887
stream.SendInteger(l_msgLen,4);
8988
stream.SendInteger(fnid, 4);
90-
89+
stream.SendInteger(1,2);
90+
stream.SendInteger(1,2);
9191
stream.SendInteger(args.length,2);
92-
for (int i=0; i < args.length; i++)
93-
stream.SendInteger(1,2);
9492

95-
stream.SendInteger(args.length,2);
96-
for (int i = 0; i < args.length; i++)
93+
for (int i = 0;i < args.length;i++)
9794
args[i].send(stream);
9895

9996
stream.SendInteger(1,2);

src/interfaces/jdbc/org/postgresql/test/jdbc2/OID74Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* User: alexei
1414
* Date: 17-Dec-2003
1515
* Time: 11:01:44
16-
* @version $Id: OID74Test.java,v 1.1 2003/12/17 15:38:42 davec Exp $
16+
* @version $Id: OID74Test.java,v 1.2 2003/12/17 15:45:05 davec Exp $
1717
*/
1818
public class OID74Test extends TestCase
1919
{
@@ -41,7 +41,7 @@ public void testBinaryStream()
4141
c = DriverManager.getConnection("jdbc:postgresql://localhost/test?compatible=7.1&user=test");
4242
c.setAutoCommit(false);
4343
st = c.createStatement();
44-
st.execute("CREATE TABLE temp (col oid)");
44+
st.execute("CREATE temp TABLE temp (col oid)");
4545
}
4646
catch (SQLException e)
4747
{

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