git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 28ce9f0)
applied patch from Oliver Jowett
Tue, 4 Feb 2003 10:44:37 +0000 (10:44 +0000)
Tue, 4 Feb 2003 10:44:37 +0000 (10:44 +0000)

diff --git a/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java b/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java
index 27a8ca91731aabe3bb01544c3758708f954e5b61..781544e16e5ea92ab4309ae10e27f2f8bd2bb035 100644 (file)
--- a/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java
+++ b/src/interfaces/jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java
@@ -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;
}
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /