* Copyright (c) 2003, PostgreSQL Global Development Group
*
* 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 $
*
*-------------------------------------------------------------------------
*/
// send the function call
try
{
- int l_msgLen = 14;
- for (int i=0; i < args.length; i++) {
- l_msgLen += 2;
+ int l_msgLen = 0;
+ l_msgLen += 16;
+ for (int i=0;i < args.length;i++)
l_msgLen += args[i].sendSize();
- }
stream.SendChar('F');
stream.SendInteger(l_msgLen,4);
stream.SendInteger(fnid, 4);
-
+ stream.SendInteger(1,2);
+ stream.SendInteger(1,2);
stream.SendInteger(args.length,2);
- for (int i=0; i < args.length; i++)
- stream.SendInteger(1,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);
stream.SendInteger(1,2);
* User: alexei\r
* Date: 17-Dec-2003\r
* Time: 11:01:44\r
- * @version $Id: OID74Test.java,v 1.1 2003/12/17 15:38:42 davec Exp $\r
+ * @version $Id: OID74Test.java,v 1.2 2003/12/17 15:45:05 davec Exp $\r
*/\r
public class OID74Test extends TestCase\r
{\r
c = DriverManager.getConnection("jdbc:postgresql://localhost/test?compatible=7.1&user=test");\r
c.setAutoCommit(false);\r
st = c.createStatement();\r
- st.execute("CREATE TABLE temp (col oid)");\r
+ st.execute("CREATE temp TABLE temp (col oid)");\r
}\r
catch (SQLException e) \r
{\r