Skip to content

Commit 8d600a7

Browse files
author
Barry Lind
committed
Second phase of restructuring to add jdbc3 support.
1 parent 43515ba commit 8d600a7

13 files changed

+1072
-1950
lines changed

src/interfaces/jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java

Lines changed: 834 additions & 2 deletions
Large diffs are not rendered by default.

src/interfaces/jdbc/org/postgresql/jdbc1/CallableStatement.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
* @see ResultSet
4040
*/
4141

42-
public class CallableStatement extends PreparedStatement implements java.sql.CallableStatement
42+
public class CallableStatement extends Jdbc1PreparedStatement implements java.sql.CallableStatement
4343
{
4444
/*
4545
* @exception SQLException on failure

src/interfaces/jdbc/org/postgresql/jdbc1/Jdbc1Connection.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import org.postgresql.Field;
77
import org.postgresql.util.PSQLException;
88

9-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/Jdbc1Connection.java,v 1.1 2002/07/23 03:59:55 barry Exp $
9+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/Jdbc1Connection.java,v 1.2 2002/07/24 22:08:40 barry Exp $
1010
* This class implements the java.sql.Connection interface for JDBC1.
1111
* However most of the implementation is really done in
1212
* org.postgresql.jdbc1.AbstractJdbc1Connection
@@ -21,7 +21,7 @@ public java.sql.Statement createStatement() throws SQLException
2121

2222
public java.sql.PreparedStatement prepareStatement(String sql) throws SQLException
2323
{
24-
return new org.postgresql.jdbc1.PreparedStatement(this, sql);
24+
return new org.postgresql.jdbc1.Jdbc1PreparedStatement(this, sql);
2525
}
2626

2727
//BJL TODO - merge callable statement logic from jdbc2 to jdbc1
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.postgresql.jdbc1;
2+
3+
4+
import java.sql.*;
5+
6+
public class Jdbc1PreparedStatement extends AbstractJdbc1Statement implements PreparedStatement
7+
{
8+
9+
public Jdbc1PreparedStatement(Jdbc1Connection connection, String sql) throws SQLException
10+
{
11+
super(connection, sql);
12+
}
13+
14+
}

src/interfaces/jdbc/org/postgresql/jdbc1/Jdbc1Statement.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import java.sql.*;
55

6-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/Jdbc1Statement.java,v 1.1 2002/07/23 03:59:55 barry Exp $
6+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc1/Attic/Jdbc1Statement.java,v 1.2 2002/07/24 22:08:40 barry Exp $
77
* This class implements the java.sql.Statement interface for JDBC1.
88
* However most of the implementation is really done in
99
* org.postgresql.jdbc1.AbstractJdbc1Statement
@@ -13,7 +13,7 @@ public class Jdbc1Statement extends org.postgresql.jdbc1.AbstractJdbc1Statement
1313

1414
public Jdbc1Statement (Jdbc1Connection c)
1515
{
16-
connection = c;
16+
super(c);
1717
}
1818

1919
}

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