applied patch from Oliver Jowett

This commit is contained in:
Dave Cramer 2003-02-04 10:44:37 +00:00
parent 28ce9f0fed
commit d23fd9572b
1 changed files with 5 additions and 5 deletions

View File

@ -271,7 +271,7 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2
*/ */
public int getDatabaseMajorVersion() throws SQLException public int getDatabaseMajorVersion() throws SQLException
{ {
throw org.postgresql.Driver.notImplemented(); return connection.getServerMajorVersion();
} }
/** /**
@ -283,7 +283,7 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2
*/ */
public int getDatabaseMinorVersion() throws SQLException public int getDatabaseMinorVersion() throws SQLException
{ {
throw org.postgresql.Driver.notImplemented(); return connection.getServerMinorVersion();
} }
/** /**
@ -296,7 +296,7 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2
*/ */
public int getJDBCMajorVersion() throws SQLException public int getJDBCMajorVersion() throws SQLException
{ {
throw org.postgresql.Driver.notImplemented(); return 3; // This class implements JDBC 3.0
} }
/** /**
@ -309,7 +309,7 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2
*/ */
public int getJDBCMinorVersion() throws SQLException public int getJDBCMinorVersion() throws SQLException
{ {
throw org.postgresql.Driver.notImplemented(); return 0; // This class implements JDBC 3.0
} }
/** /**
@ -349,7 +349,7 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2
*/ */
public boolean supportsStatementPooling() throws SQLException public boolean supportsStatementPooling() throws SQLException
{ {
throw org.postgresql.Driver.notImplemented(); return false;
} }
} }