Skip to content
Snippets Groups Projects
  1. Jan 18, 2001
    • Peter Mount's avatar
      Thu Jan 18 12:24:00 GMT 2001 peter@retep.org.uk · 45b5d792
      Peter Mount authored
              - These methods in org.postgresql.jdbc2.ResultSet are now implemented:
                  getBigDecimal(int) ie: without a scale (why did this get missed?)
                  getBlob(int)
                  getCharacterStream(int)
                  getConcurrency()
                  getDate(int,Calendar)
                  getFetchDirection()
                  getFetchSize()
                  getTime(int,Calendar)
                  getTimestamp(int,Calendar)
                  getType()
                NB: Where int represents the column name, the associated version
                    taking a String were already implemented by calling the int
                    version.
              - 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:
                  cancelRowUpdates()
                  deleteRow()
              - Added new error message into errors.properties "postgresql.noupdate"
                This is used by jdbc2.ResultSet when an update method is called and
                the ResultSet is not updateable. A new method notUpdateable() has been
                added to that class to throw this exception, keeping the binary size
                down.
              - Added new error message into errors.properties "postgresql.psqlnotimp"
                This is used instead of unimplemented when it's a feature in the
                backend that is preventing this method from being implemented.
              - Removed getKeysetSize() as its not part of the ResultSet API
      
      Thu Jan 18 09:46:00 GMT 2001 peter@retep.org.uk
              - Applied modified patch from Richard Bullington-McGuire
                <rbulling@microstate.com>. I had to modify it as some of the code
                patched now exists in different classes, and some of it actually
                patched obsolete code.
      
      Wed Jan 17 10:19:00 GMT 2001 peter@retep.org.uk
              - Updated Implementation to include both ANT & JBuilder
              - Updated README to reflect the changes since 7.0
      	- Created jdbc.jpr file which allows JBuilder to be used to edit the
                source. JBuilder _CAN_NOT_ be used to compile. You must use ANT for
                that. It's only to allow JBuilders syntax checking to improve the
                drivers source. Refer to Implementation for more details
      45b5d792
  2. Dec 22, 2000
    • Bruce Momjian's avatar
      In looking at the 7.1beta1 code for JDBC, I noticed that support was · 4ce226ee
      Bruce Momjian authored
      added to support character set encodings.  However I noticed that the
      encoding that is used isn't obtained from the DB.  Since Java uses
      unicode UCS2 internally the character set encoding is used to translate
      strings from/to the DB encoding.  So it seems logical that the code
      would get the encoding from the DB instead of the current method of
      requiring the user pass it as a parameter.
      
      Attached is a patch that gets the DB encoding from the DB in the same
      manner as is done in libpq/fe-connect.c.  The patch is created off of
      the latest CVS sources (Connection.java version 1.10).
      
      Barry Lind
      4ce226ee
  3. Nov 20, 2000
  4. Oct 12, 2000
  5. Oct 09, 2000
  6. Oct 08, 2000
    • Bruce Momjian's avatar
      Okay, I have some new code in place that hopefully should work better. I · 5383b5d8
      Bruce Momjian authored
      couldn't produce a full patch using cvs diff -c this time since I have
      created new files and anonymous cvs usage doesn't allow you to
      adds. I'm supplying the modified src/interfaces/jdbc as a tarball at :
      http://www.candleweb.no/~gunnar/projects/pgsql/postgres-jdbc-2000-10-05.tgz
      
      The new files that should be added are :
      
      ? org/postgresql/PGStatement.java
      ? org/postgresql/ObjectPool.java
      ? org/postgresql/ObjectPoolFactory.java
      
      There is now a global static pool of free byte arrays and used byte arrays
      connected to a statement object. This is the role of the new PGStatement
      class. Access to the global free array is synchronized, while we rely on
      the PG_Stream synchronization for the used array.
      
      My measurements show that the perfomance boost on this code is not quite as
      big as my last shot, but it is still an improvement. Maybe some of the
      difference is due to the new synchronization on the global array. I think I
      will look into choosing between on a connection level and global level.
      
      I have also started experimented with improving the performance of the
      various conversions. The problem here is ofcourse related handle the
      various encodings. One thing I found to speed up ResultSet.getInt() a lot
      was to do custom conversion on the byte array into int instead of going
      through the getString() to do the conversion. But I'm unsure if this is
      portable, can we assume that a digit never can be represented by more than
      one byte ? It works fine in my iso-latin-8859-1 environment, but what about
      other environments ? Maybe we could provide different ResultSet
      implementations depending on the encoding used or delegate some methods of
      the result set to an "converter class".
      
      Check the org/postgresql/jdbc2/FastResultSet.java in the tarball above to
      see the modified getInt() method.
      
      Regards,
      
              Gunnar
      5383b5d8
  7. Sep 12, 2000
  8. Jun 06, 2000
  9. Apr 26, 2000
  10. Sep 15, 1999
  11. Sep 14, 1999
  12. May 19, 1999
  13. May 18, 1999
  14. Apr 11, 1999
  15. Jan 17, 1999
    • Bruce Momjian's avatar
      As the email posted to the announce and interfaces list, attached is a tar · 298682d9
      Bruce Momjian authored
      file containing the latest version of the JDBC driver, allowing it to be
      compiled and used under JDK 1.2 and later.
      
      NB: None (well almost none) of the new methods actually do anything. This
      release only handles getting it to compile and run. Now this is done, I'll
      start working on implementing the new stuff.
      
      Now this tar file replaces everything under src/interfaces/jdbc. I had to
      do it this way, rather than diffs, because most of the classes under the
      postgresql subdirectory have moved to a new directory under that one, to
      enable the support of the two JDBC standards.
      
      Here's a list of files in the tar file. Any file not listed here (in the
      postgresql directory) will have to be deleted, otherwise it could cause
      the driver to fail:
      
      Peter Mount
      298682d9
  16. Oct 08, 1998
  17. Sep 03, 1998
  18. Jun 03, 1998
    • Marc G. Fournier's avatar
      · 85f91d0e
      Marc G. Fournier authored
      From: Peter T Mount <patches@maidast.demon.co.uk>
      
      Bug fixes:
      
              PreparedStatement.setObject didn't handle short's
      
              ResultSet.getDate() now handles null dates (returns null rather
              than a NullPointerException)
      
              ResultSetMetaData.getPrecision() now returns 0 for VARCHAR
      
      New features:
      
              Field now caches the typename->oid in a Hashtable to speed things
              up. It removes the need for some unnecessary queries to the
              backend.
      
              PreparedStatement.toString() now returns the sql statement that
              it will send to the backend. Before it did nothing.
      
              DatabaseMetaData.getTypeInfo() now does something.
      85f91d0e
  19. Apr 18, 1998
  20. Feb 20, 1998
  21. Feb 09, 1998
    • Marc G. Fournier's avatar
      From: Peter T Mount <patches@maidast.demon.co.uk> · 2535fcde
      Marc G. Fournier authored
      This patch fixes the following:
      
      * Fixes minor bug found in DatabaseMetaData.getTables() where it doesn't
        handle default table types.
      * It now reports an error if the client opens a database using
        properties, and either the user or password properties are missing. This
        should make the recent problem with Servlets easier to find.
      * Commented out obsolete property in Driver.getPropertyInfo()
      2535fcde
  22. Feb 02, 1998
    • Marc G. Fournier's avatar
      From: Peter T Mount <patches@maidast.demon.co.uk> · 4e9dd952
      Marc G. Fournier authored
      [This is a repost - it supercedes the previous one. It fixes the patch so
      it doesn't bread aix port, plus there's a file missing out of the
      original post because difforig doesn't pick up new files. It's now
      attached. peter]
      
      This patch brings the JDBC driver up to the current protocol spec.
      Basically, the backend now tells the driver what authentication scheme to
      use.
      
      The patch also fixes a performance problem with large objects. In the
      buffer manager, each fastpath call was sending multiple Notifications to
      the backend (sometimes more data in the form of notifications were being
      sent than blob data!).
      4e9dd952
  23. Jan 11, 1998
  24. Nov 07, 1997
  25. Oct 30, 1997
  26. Sep 20, 1997
  27. Aug 31, 1997
  28. Aug 16, 1997
Loading