Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit d23fd95

Browse files
author
Dave Cramer
committed
applied patch from Oliver Jowett
1 parent 28ce9f0 commit d23fd95

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public int getResultSetHoldability() throws SQLException
271271
*/
272272
public int getDatabaseMajorVersion() throws SQLException
273273
{
274-
throw org.postgresql.Driver.notImplemented();
274+
return connection.getServerMajorVersion();
275275
}
276276

277277
/**
@@ -283,7 +283,7 @@ public int getDatabaseMajorVersion() throws SQLException
283283
*/
284284
public int getDatabaseMinorVersion() throws SQLException
285285
{
286-
throw org.postgresql.Driver.notImplemented();
286+
return connection.getServerMinorVersion();
287287
}
288288

289289
/**
@@ -296,7 +296,7 @@ public int getDatabaseMinorVersion() throws SQLException
296296
*/
297297
public int getJDBCMajorVersion() throws SQLException
298298
{
299-
throw org.postgresql.Driver.notImplemented();
299+
return 3; // This class implements JDBC 3.0
300300
}
301301

302302
/**
@@ -309,7 +309,7 @@ public int getJDBCMajorVersion() throws SQLException
309309
*/
310310
public int getJDBCMinorVersion() throws SQLException
311311
{
312-
throw org.postgresql.Driver.notImplemented();
312+
return 0; // This class implements JDBC 3.0
313313
}
314314

315315
/**
@@ -349,7 +349,7 @@ public boolean locatorsUpdateCopy() throws SQLException
349349
*/
350350
public boolean supportsStatementPooling() throws SQLException
351351
{
352-
throw org.postgresql.Driver.notImplemented();
352+
return false;
353353
}
354354

355355
}

0 commit comments

Comments
 (0)