Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1b80e01

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 parent54bc3b6 commit1b80e01

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
importorg.postgresql.largeobject.*;
99
importorg.postgresql.util.PSQLException;
1010

11-
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.9 2002/11/2007:34:32 barry Exp $
11+
/* $Header: /cvsroot/pgsql/src/interfaces/jdbc/org/postgresql/jdbc2/Attic/AbstractJdbc2Statement.java,v 1.10 2002/11/2020: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 (SQLExceptione)

‎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
publicbooleansupportsSavepoints()throwsSQLException
2424
{
25-
throworg.postgresql.Driver.notImplemented();
25+
returnfalse;
2626
}
2727

2828
/**
@@ -36,7 +36,7 @@ public boolean supportsSavepoints() throws SQLException
3636
*/
3737
publicbooleansupportsNamedParameters()throwsSQLException
3838
{
39-
throworg.postgresql.Driver.notImplemented();
39+
returnfalse;
4040
}
4141

4242
/**
@@ -52,7 +52,7 @@ public boolean supportsNamedParameters() throws SQLException
5252
*/
5353
publicbooleansupportsMultipleOpenResults()throwsSQLException
5454
{
55-
throworg.postgresql.Driver.notImplemented();
55+
returnfalse;
5656
}
5757

5858
/**
@@ -66,7 +66,7 @@ public boolean supportsMultipleOpenResults() throws SQLException
6666
*/
6767
publicbooleansupportsGetGeneratedKeys()throwsSQLException
6868
{
69-
throworg.postgresql.Driver.notImplemented();
69+
returnfalse;
7070
}
7171

7272
/**
@@ -244,7 +244,7 @@ public ResultSet getAttributes(String catalog, String schemaPattern,
244244
*/
245245
publicbooleansupportsResultSetHoldability(intholdability)throwsSQLException
246246
{
247-
throworg.postgresql.Driver.notImplemented();
247+
returntrue;
248248
}
249249

250250
/**
@@ -259,7 +259,7 @@ public boolean supportsResultSetHoldability(int holdability) throws SQLException
259259
*/
260260
publicintgetResultSetHoldability()throwsSQLException
261261
{
262-
throworg.postgresql.Driver.notImplemented();
262+
returnResultSet.HOLD_CURSORS_OVER_COMMIT;
263263
}
264264

265265
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp