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

Commitd23fd95

Browse files
author
Dave Cramer
committed
applied patch from Oliver Jowett
1 parent28ce9f0 commitd23fd95

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public int getResultSetHoldability() throws SQLException
271271
*/
272272
publicintgetDatabaseMajorVersion()throwsSQLException
273273
{
274-
throworg.postgresql.Driver.notImplemented();
274+
returnconnection.getServerMajorVersion();
275275
}
276276

277277
/**
@@ -283,7 +283,7 @@ public int getDatabaseMajorVersion() throws SQLException
283283
*/
284284
publicintgetDatabaseMinorVersion()throwsSQLException
285285
{
286-
throworg.postgresql.Driver.notImplemented();
286+
returnconnection.getServerMinorVersion();
287287
}
288288

289289
/**
@@ -296,7 +296,7 @@ public int getDatabaseMinorVersion() throws SQLException
296296
*/
297297
publicintgetJDBCMajorVersion()throwsSQLException
298298
{
299-
throworg.postgresql.Driver.notImplemented();
299+
return3;// This class implements JDBC 3.0
300300
}
301301

302302
/**
@@ -309,7 +309,7 @@ public int getJDBCMajorVersion() throws SQLException
309309
*/
310310
publicintgetJDBCMinorVersion()throwsSQLException
311311
{
312-
throworg.postgresql.Driver.notImplemented();
312+
return0;// This class implements JDBC 3.0
313313
}
314314

315315
/**
@@ -349,7 +349,7 @@ public boolean locatorsUpdateCopy() throws SQLException
349349
*/
350350
publicbooleansupportsStatementPooling()throwsSQLException
351351
{
352-
throworg.postgresql.Driver.notImplemented();
352+
returnfalse;
353353
}
354354

355355
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp