]> granicus.if.org Git - postgresql/commitdiff
applied patch from Oliver Jowett
authorDave Cramer <davec@fastcrypt.com>
Tue, 4 Feb 2003 10:44:37 +0000 (10:44 +0000)
committerDave Cramer <davec@fastcrypt.com>
Tue, 4 Feb 2003 10:44:37 +0000 (10:44 +0000)
src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java

index 27a8ca91731aabe3bb01544c3758708f954e5b61..781544e16e5ea92ab4309ae10e27f2f8bd2bb035 100644 (file)
@@ -271,7 +271,7 @@ public abstract class AbstractJdbc3DatabaseMetaData extends org.postgresql.jdbc2
         */
        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
        {
-               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
        {
-               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
        {
-               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
        {
-               throw org.postgresql.Driver.notImplemented();
+               return false;
        }
 
 }