mirror of
				https://github.com/postgres/postgres.git
				synced 2025-10-29 22:49:41 +03:00 
			
		
		
		
	revoked patch from Kris Jurka to fix multiarguments, and changed test to create
a temp table
This commit is contained in:
		| @@ -6,7 +6,7 @@ | |||||||
|  * Copyright (c) 2003, PostgreSQL Global Development Group |  * Copyright (c) 2003, PostgreSQL Global Development Group | ||||||
|  * |  * | ||||||
|  * IDENTIFICATION |  * IDENTIFICATION | ||||||
|  *	  $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java,v 1.18 2003/12/17 15:38:42 davec Exp $ |  *	  $PostgreSQL: pgsql/src/interfaces/jdbc/org/postgresql/fastpath/Fastpath.java,v 1.19 2003/12/17 15:45:05 davec Exp $ | ||||||
|  * |  * | ||||||
|  *------------------------------------------------------------------------- |  *------------------------------------------------------------------------- | ||||||
|  */ |  */ | ||||||
| @@ -78,22 +78,19 @@ public class Fastpath | |||||||
| 			// send the function call | 			// send the function call | ||||||
| 			try | 			try | ||||||
| 			{ | 			{ | ||||||
| 				int l_msgLen = 14; | 				int l_msgLen = 0; | ||||||
| 				for (int i=0; i < args.length; i++) { | 				l_msgLen += 16; | ||||||
| 					l_msgLen += 2; | 				for (int i=0;i < args.length;i++) | ||||||
| 					l_msgLen += args[i].sendSize(); | 					l_msgLen += args[i].sendSize(); | ||||||
| 				} |  | ||||||
| 					 | 					 | ||||||
| 				stream.SendChar('F'); | 				stream.SendChar('F'); | ||||||
| 				stream.SendInteger(l_msgLen,4); | 				stream.SendInteger(l_msgLen,4); | ||||||
| 				stream.SendInteger(fnid, 4); | 				stream.SendInteger(fnid, 4); | ||||||
|  |  | ||||||
| 				stream.SendInteger(args.length,2); |  | ||||||
| 				for (int i=0; i < args.length; i++) |  | ||||||
| 				stream.SendInteger(1,2); | 				stream.SendInteger(1,2); | ||||||
|  | 				stream.SendInteger(1,2); | ||||||
| 				stream.SendInteger(args.length,2); | 				stream.SendInteger(args.length,2); | ||||||
| 				for (int i = 0; i < args.length; i++) |  | ||||||
|  | 				for (int i = 0;i < args.length;i++) | ||||||
| 					args[i].send(stream); | 					args[i].send(stream); | ||||||
| 				 | 				 | ||||||
| 				stream.SendInteger(1,2); | 				stream.SendInteger(1,2); | ||||||
|   | |||||||
| @@ -13,7 +13,7 @@ import java.sql.*; | |||||||
|  * User: alexei |  * User: alexei | ||||||
|  * Date: 17-Dec-2003 |  * Date: 17-Dec-2003 | ||||||
|  * Time: 11:01:44 |  * Time: 11:01:44 | ||||||
|  * @version $Id: OID74Test.java,v 1.1 2003/12/17 15:38:42 davec Exp $ |  * @version $Id: OID74Test.java,v 1.2 2003/12/17 15:45:05 davec Exp $ | ||||||
|  */ |  */ | ||||||
| public class OID74Test  extends TestCase | public class OID74Test  extends TestCase | ||||||
| { | { | ||||||
| @@ -41,7 +41,7 @@ public class OID74Test  extends TestCase | |||||||
| 			c =  DriverManager.getConnection("jdbc:postgresql://localhost/test?compatible=7.1&user=test"); | 			c =  DriverManager.getConnection("jdbc:postgresql://localhost/test?compatible=7.1&user=test"); | ||||||
|     			c.setAutoCommit(false); |     			c.setAutoCommit(false); | ||||||
| 			st = c.createStatement(); | 			st = c.createStatement(); | ||||||
|         		st.execute("CREATE TABLE temp (col oid)"); |         		st.execute("CREATE temp TABLE temp (col oid)"); | ||||||
|       		} |       		} | ||||||
| 		 catch (SQLException e)  | 		 catch (SQLException e)  | ||||||
| 		{ | 		{ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user