From 8bc9f0016ba3047f60343176c30553d6b6e999f9 Mon Sep 17 00:00:00 2001 From: Peter Mount Date: Thu, 18 Jan 2001 17:37:15 +0000 Subject: [PATCH] Thu Jan 18 17:37:00 GMT 2001 peter@retep.org.uk - Added new error message into errors.properties "postgresql.notsensitive" This is used by jdbc2.ResultSet when a method is called that should fetch the current value of a row from the database refreshRow() for example. - These methods no longer throw the not implemented but the new noupdate error. This is in preparation for the Updateable ResultSet support which will overide these methods by extending the existing class to implement that functionality, but needed to show something other than notimplemented: moveToCurrentRow() moveToInsertRow() rowDeleted() rowInserted() all update*() methods, except those that took the column as a String as they were already implemented to convert the String to an int. - getFetchDirection() and setFetchDirection() now throws "postgresql.notimp" as we only support one direction. The CursorResultSet will overide this when its implemented. - Created a new class under jdbc2 UpdateableResultSet which extends ResultSet and overides the relevent update methods. This allows us to implement them easily at a later date. - In jdbc2.Connection, the following methods are now implemented: createStatement(type,concurrency); getTypeMap(); setTypeMap(Map); - The JDBC2 type mapping scheme almost complete, just needs SQLInput & SQLOutput to be implemented. - Removed some Statement methods that somehow appeared in Connection. - In jdbc2.Statement() getResultSetConcurrency() getResultSetType() setResultSetConcurrency() setResultSetType() - Finally removed the old 6.5.x driver. --- src/interfaces/jdbc/CHANGELOG | 36 ++++ src/interfaces/jdbc/build.xml | 23 ++- src/interfaces/jdbc/jdbc.jpx | 1 + .../jdbc/org/postgresql/Connection.java | 23 ++- .../jdbc/org/postgresql/errors.properties | 3 +- .../jdbc/org/postgresql/jdbc1/Connection.java | 69 +++---- .../jdbc/org/postgresql/jdbc2/Connection.java | 187 ++++++++++-------- .../jdbc/org/postgresql/jdbc2/ResultSet.java | 105 ++++++---- .../jdbc/org/postgresql/jdbc2/Statement.java | 91 +++++---- 9 files changed, 345 insertions(+), 193 deletions(-) diff --git a/src/interfaces/jdbc/CHANGELOG b/src/interfaces/jdbc/CHANGELOG index e9242a0b578..854725066c4 100644 --- a/src/interfaces/jdbc/CHANGELOG +++ b/src/interfaces/jdbc/CHANGELOG @@ -1,3 +1,39 @@ +Thu Jan 18 17:30:00 GMT 2001 peter@retep.org.uk + - Added new error message into errors.properties "postgresql.notsensitive" + This is used by jdbc2.ResultSet when a method is called that should + fetch the current value of a row from the database refreshRow() for + example. + - These methods no longer throw the not implemented but the new noupdate + error. This is in preparation for the Updateable ResultSet support + which will overide these methods by extending the existing class to + implement that functionality, but needed to show something other than + notimplemented: + moveToCurrentRow() + moveToInsertRow() + rowDeleted() + rowInserted() + all update*() methods, except those that took the column as a String + as they were already implemented to convert the String to an int. + - getFetchDirection() and setFetchDirection() now throws + "postgresql.notimp" as we only support one direction. + The CursorResultSet will overide this when its implemented. + - Created a new class under jdbc2 UpdateableResultSet which extends + ResultSet and overides the relevent update methods. + This allows us to implement them easily at a later date. + - In jdbc2.Connection, the following methods are now implemented: + createStatement(type,concurrency); + getTypeMap(); + setTypeMap(Map); + - The JDBC2 type mapping scheme almost complete, just needs SQLInput & + SQLOutput to be implemented. + - Removed some Statement methods that somehow appeared in Connection. + - In jdbc2.Statement() + getResultSetConcurrency() + getResultSetType() + setResultSetConcurrency() + setResultSetType() + - Finally removed the old 6.5.x driver. + Thu Jan 18 12:24:00 GMT 2001 peter@retep.org.uk - These methods in org.postgresql.jdbc2.ResultSet are now implemented: getBigDecimal(int) ie: without a scale (why did this get missed?) diff --git a/src/interfaces/jdbc/build.xml b/src/interfaces/jdbc/build.xml index fb59c283046..2a923495bae 100644 --- a/src/interfaces/jdbc/build.xml +++ b/src/interfaces/jdbc/build.xml @@ -3,7 +3,7 @@ build file to allow ant (http://jakarta.apache.org/ant/) to be used to build the PostgreSQL JDBC Driver. - $Id: build.xml,v 1.3 2001/01/18 14:50:14 peter Exp $ + $Id: build.xml,v 1.4 2001/01/18 17:37:11 peter Exp $ --> @@ -95,9 +95,28 @@ + + + + + + + + + + + + + + + + + + - + +