File tree 1 file changed +5
-5
lines changed
src/interfaces/jdbc/org/postgresql/jdbc3
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ public int getResultSetHoldability() throws SQLException
271
271
*/
272
272
public int getDatabaseMajorVersion () throws SQLException
273
273
{
274
- throw org . postgresql . Driver . notImplemented ();
274
+ return connection . getServerMajorVersion ();
275
275
}
276
276
277
277
/**
@@ -283,7 +283,7 @@ public int getDatabaseMajorVersion() throws SQLException
283
283
*/
284
284
public int getDatabaseMinorVersion () throws SQLException
285
285
{
286
- throw org . postgresql . Driver . notImplemented ();
286
+ return connection . getServerMinorVersion ();
287
287
}
288
288
289
289
/**
@@ -296,7 +296,7 @@ public int getDatabaseMinorVersion() throws SQLException
296
296
*/
297
297
public int getJDBCMajorVersion () throws SQLException
298
298
{
299
- throw org . postgresql . Driver . notImplemented ();
299
+ return 3 ; // This class implements JDBC 3.0
300
300
}
301
301
302
302
/**
@@ -309,7 +309,7 @@ public int getJDBCMajorVersion() throws SQLException
309
309
*/
310
310
public int getJDBCMinorVersion () throws SQLException
311
311
{
312
- throw org . postgresql . Driver . notImplemented ();
312
+ return 0 ; // This class implements JDBC 3.0
313
313
}
314
314
315
315
/**
@@ -349,7 +349,7 @@ public boolean locatorsUpdateCopy() throws SQLException
349
349
*/
350
350
public boolean supportsStatementPooling () throws SQLException
351
351
{
352
- throw org . postgresql . Driver . notImplemented () ;
352
+ return false ;
353
353
}
354
354
355
355
}
You can’t perform that action at this time.
0 commit comments