diff options
author | Peter Mount <peter@retep.org.uk> | 2000-10-12 08:55:28 +0000 |
---|---|---|
committer | Peter Mount <peter@retep.org.uk> | 2000-10-12 08:55:28 +0000 |
commit | f41dcbe4d810f0906f43d1b345cf506d72c792ac (patch) | |
tree | 797e86d7fb86667e9b89595bb2f722b8018c39c6 /src/interfaces/jdbc/org/postgresql/jdbc2 | |
parent | f20d2a87fb46284d9aca549321c407f00451f849 (diff) |
Major update part I involving delayed patches, reworked Makefile, and how
the versioning works. There's also a new utils directory used by Makefile
Diffstat (limited to 'src/interfaces/jdbc/org/postgresql/jdbc2')
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java | 10 | ||||
-rw-r--r-- | src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java | 5 |
2 files changed, 10 insertions, 5 deletions
diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java b/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java index 4b8451d1fcc..051a99c630d 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/DatabaseMetaData.java @@ -179,7 +179,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData */ public String getDatabaseProductVersion() throws SQLException { - return ("7.0.2"); + return connection.this_driver.getVersion(); } /** @@ -203,7 +203,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData */ public String getDriverVersion() throws SQLException { - return Integer.toString(connection.this_driver.getMajorVersion())+"."+Integer.toString(connection.this_driver.getMinorVersion()); + return connection.this_driver.getVersion(); } /** @@ -453,14 +453,14 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData /** * Is "ALTER TABLE" with a drop column supported? - * Yes for PostgreSQL 6.1 + * Peter 10/10/2000 This was set to true, but 7.1devel doesn't support it! * * @return true if so * @exception SQLException if a database access error occurs */ public boolean supportsAlterTableWithDropColumn() throws SQLException { - return true; + return false; } /** @@ -523,7 +523,7 @@ public class DatabaseMetaData implements java.sql.DatabaseMetaData } /** - * Are expressions in "ORCER BY" lists supported? + * Are expressions in "ORDER BY" lists supported? * * <br>e.g. select * from t order by a + b; * diff --git a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java index e9f6c79f41b..5c73b6ed4f0 100644 --- a/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java +++ b/src/interfaces/jdbc/org/postgresql/jdbc2/ResultSet.java @@ -730,6 +730,11 @@ public class ResultSet extends org.postgresql.ResultSet implements java.sql.Resu if (columnIndex < 1 || columnIndex > fields.length) throw new PSQLException("postgresql.res.colrange"); + + wasNullFlag = (this_row[columnIndex - 1] == null); + if(wasNullFlag) + return null; + field = fields[columnIndex - 1]; // some fields can be null, mainly from those returned by MetaData methods |