Skip to content
Snippets Groups Projects
  1. May 30, 2001
  2. May 17, 2001
    • Bruce Momjian's avatar
    • Bruce Momjian's avatar
      Cleanup of backpatch of jdbc2 improvements to jdbc1: · 2e3c56a0
      Bruce Momjian authored
      Here's what I came up with. The biggest difference api between JDK1.x and
      later versions is the support for collections. The problem was with the
      Vector class; in jdk1.x there is no method called add, so I changed the
      calls to addElement. Also no addAll, so I rewrote the method slightly to not
      require addAll. While reviewing this I notices some System.out.println
      statements that weren't commented out. So I commented them out in both
      versions.
      
      The upshot of all of this is that I have clean compile, but no idea if the
      code works ;(
      
      Dave Cramer
      2e3c56a0
  3. May 16, 2001
  4. Feb 16, 2001
    • Peter Mount's avatar
      Some more updates... · cdbd27cb
      Peter Mount authored
      Fri Feb 17 15:11:00 GMT 2001 peter@retep.org.uk
              - Reduced the object overhead in PreparedStatement by reusing the same
                StringBuffer object throughout. Similarly SimpleDateStamp's are alse
                reused in a thread save manner.
              - Implemented in PreparedStatement: setNull(), setDate/Time/Timestamp
                using Calendar, setBlob(), setCharacterStream()
              - Clob's are now implemented in ResultSet & PreparedStatement!
              - Implemented a lot of DatabaseMetaData & ResultSetMetaData methods.
                We have about 18 unimplemented methods left in JDBC2 at the current
                time.
      cdbd27cb
  5. Feb 13, 2001
    • Peter Mount's avatar
      Some more including the patch to DatabaseMetaData backed out by Bruce. · 3d21bf82
      Peter Mount authored
      Tue Feb 13 16:33:00 GMT 2001 peter@retep.org.uk
              - More TestCases implemented. Refined the test suite api's.
              - Removed need for SimpleDateFormat in ResultSet.getDate() improving
                performance.
              - Rewrote ResultSet.getTime() so that it uses JDK api's better.
      
      Tue Feb 13 10:25:00 GMT 2001 peter@retep.org.uk
              - Added MiscTest to hold reported problems from users.
              - Fixed PGMoney.
              - JBuilder4/JDBCExplorer now works with Money fields. Patched Field &
                ResultSet (lots of methods) for this one. Also changed cash/money to
                return type DOUBLE not DECIMAL. This broke JBuilder as zero scale
                BigDecimal's can't have decimal places!
              - When a Statement is reused, the previous ResultSet is now closed.
              - Removed deprecated call in ResultSet.getTime()
      
      Thu Feb 08 18:53:00 GMT 2001 peter@retep.org.uk
              - Changed a couple of settings in DatabaseMetaData where 7.1 now
                supports those features
              - Implemented the DatabaseMetaData TestCase.
      
      Wed Feb 07 18:06:00 GMT 2001 peter@retep.org.uk
              - Added comment to Connection.isClosed() explaining why we deviate from
                the JDBC2 specification.
              - Fixed bug where the Isolation Level is lost while in autocommit mode.
              - Fixed bug where several calls to getTransactionIsolationLevel()
                returned the first call's result.
      3d21bf82
    • Bruce Momjian's avatar
  6. Feb 09, 2001
  7. Jan 24, 2001
  8. Nov 25, 2000
  9. Oct 12, 2000
  10. Oct 09, 2000
  11. 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
  12. Sep 12, 2000
    • Bruce Momjian's avatar
      As if my JDBC patch hasn't already caused enough grief, there is now a · 339ce34b
      Bruce Momjian authored
      one-line change necessary. Due to the Mark Holloman "New Relkind for
      Views" patch, my support for views in the driver will need to be updated
      to match. The change to DatabaseMetaData.getTableTypes[][] is as
      follows:
      
      -    {"VIEW",           "(relkind='r' and relhasrules='t' and relname !~
      '^pg_' and relname !~ '^xinv')"},
      +    {"VIEW",           "(relkind='v' and relname !~ '^pg_' and relname
      !~ '^xinv')"},
      
      Christopher Cain
      339ce34b
    • Bruce Momjian's avatar
      This patch implements the following command: · 7f171b59
      Bruce Momjian authored
      ALTER TABLE <tablename> OWNER TO <username>
      
      Only a superuser may execute the command.
      
      --
      Mark Hollomon
      mhh@mindspring.com
      7f171b59
    • Bruce Momjian's avatar
      Applied to jdbc1 and jdbc2. · 4f5cdadf
      Bruce Momjian authored
      This is a patch which lets the DatabaseMetaData return the object type
      when getTables(....) is called.  It does not really fix any bug, but it
      fills in some functionality that should be there anyway.  The diff
      included here is off of the CVS as of just now :)
      
      ----------------------------------------------------------------
      Travis Bauer | CS Grad Student | IU |www.cs.indiana.edu/~trbauer
      ----------------------------------------------------------------
      4f5cdadf
    • Bruce Momjian's avatar
      This patch for the 7.0.2 JDBC interface addresses four issues I · 879639b5
      Bruce Momjian authored
      encountered while getting my reporting tool up and running with the
      driver. All changes are in the DatabaseMetaData class.
      
      Problem: The getDatabaseProductVersion() method was returning "6.5.2"
      Resolution: Changed it to return "7.0.2"
      
      Problem: A call to getTables() with an unsupported table type (in the
      String array) resulted in a malformed SQL statement and subsequent
      parsing error
      Resolution: Unsupported table types are now ignored without error
      
      Problem: In a getTables() call, tables and views were both returned by
      the "TABLE" table type, and the "VIEW" table type was unsupported
      Resolution: Changed the "TABLE" type to return only physical tables and
      added support for the "VIEW" table type (returning only views)
      
      Problem: The getIdentifierQuoteString() method was returning null
      Resolution: This method now returns a double-quote
      
      Christopher Cain
      879639b5
  13. Jul 20, 2000
  14. Apr 17, 2000
  15. Sep 15, 1999
  16. Sep 14, 1999
  17. 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
  18. Sep 03, 1998
  19. 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
  20. Mar 20, 1998
    • Bruce Momjian's avatar
      This patch fixes a couple of minor bugs: · 2b3bb341
      Bruce Momjian authored
      1) DatabaseMetaData.getPrimaryKeys() would fail saying that there
      is no
         table t.
      
      2) PreparedStatement.getObject() was missing some break statements,
      which
         was causing updates not to work with JBuilder (supplied by Aaron
         Dunlop).
      
      
      jdbc fixes from Peter.
      2b3bb341
  21. Feb 22, 1998
  22. 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
  23. 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
  24. Jan 11, 1998
  25. Sep 29, 1997
    • Marc G. Fournier's avatar
      From: Peter T Mount <patches@maidast.demon.co.uk> · 65818b6b
      Marc G. Fournier authored
      This patch fixes a few results in DatabaseMetaData, and updates the README
      and TODO files (the later being a new file).
      
      The TODO file lists the things that need to be looked into after 6.2 is
      released, and describes the problem with Large Objects.
      65818b6b
  26. Aug 31, 1997
  27. Aug 16, 1997
Loading