Skip to content

Commit 1b80e01

Browse files
author
Barry Lind
committed
Fix a dumb cut and paste error from my last commit and update some of the
jdbc3 metadata responses Modified Files: jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java
1 parent 54bc3b6 commit 1b80e01

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/interfaces/jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.postgresql.largeobject.*;
99
import org.postgresql.util.PSQLException;
1010

11-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.9 2002/11/20 07:34:32 barry Exp $
11+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.10 2002/11/20 20:37:53 barry Exp $
1212
* This class defines methods of the jdbc2 specification. This class extends
1313
* org.postgresql.jdbc1.AbstractJdbc1Statement which provides the jdbc1
1414
* methods. The real Statement class (for jdbc2) is org.postgresql.jdbc2.Jdbc2Statement
@@ -83,18 +83,18 @@ public int[] executeBatch() throws SQLException
8383
String[] l_origBindTypes = m_bindTypes;
8484

8585
for (i = 0;i < size;i++) {
86-
//set state from batch
87-
Object[] l_statement = (Object[])batch.elementAt(i);
86+
//set state from batch
87+
Object[] l_statement = (Object[])batch.elementAt(i);
8888
this.m_sqlFragments = (String[])l_statement[0];
8989
this.m_binds = (Object[])l_statement[1];
9090
this.m_bindTypes = (String[])l_statement[2];
9191
result[i] = this.executeUpdate();
9292
}
9393

94-
//restore state of statement
95-
String[] m_sqlFragments = l_origSqlFragments;
96-
Object[] m_binds = l_origBinds;
97-
String[] m_bindTypes = l_origBindTypes;
94+
//restore state of statement
95+
m_sqlFragments = l_origSqlFragments;
96+
m_binds = l_origBinds;
97+
m_bindTypes = l_origBindTypes;
9898

9999
}
100100
catch (SQLException e)

src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public AbstractJdbc3DatabaseMetaData(AbstractJdbc3Connection conn)
2222
*/
2323
public boolean supportsSavepoints() throws SQLException
2424
{
25-
throw org.postgresql.Driver.notImplemented();
25+
return false;
2626
}
2727

2828
/**
@@ -36,7 +36,7 @@ public boolean supportsSavepoints() throws SQLException
3636
*/
3737
public boolean supportsNamedParameters() throws SQLException
3838
{
39-
throw org.postgresql.Driver.notImplemented();
39+
return false;
4040
}
4141

4242
/**
@@ -52,7 +52,7 @@ public boolean supportsNamedParameters() throws SQLException
5252
*/
5353
public boolean supportsMultipleOpenResults() throws SQLException
5454
{
55-
throw org.postgresql.Driver.notImplemented();
55+
return false;
5656
}
5757

5858
/**
@@ -66,7 +66,7 @@ public boolean supportsMultipleOpenResults() throws SQLException
6666
*/
6767
public boolean supportsGetGeneratedKeys() throws SQLException
6868
{
69-
throw org.postgresql.Driver.notImplemented();
69+
return false;
7070
}
7171

7272
/**
@@ -244,7 +244,7 @@ public ResultSet getAttributes(String catalog, String schemaPattern,
244244
*/
245245
public boolean supportsResultSetHoldability(int holdability) throws SQLException
246246
{
247-
throw org.postgresql.Driver.notImplemented();
247+
return true;
248248
}
249249

250250
/**
@@ -259,7 +259,7 @@ public boolean supportsResultSetHoldability(int holdability) throws SQLException
259259
*/
260260
public int getResultSetHoldability() throws SQLException
261261
{
262-
throw org.postgresql.Driver.notImplemented();
262+
return ResultSet.HOLD_CURSORS_OVER_COMMIT;
263263
}
264264

265265
/**

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