1. 11 Sep, 2002 1 commit
    • Barry Lind's avatar
      Patches submitted by Kris Jurka (jurka@ejurka.com) for the following bugs: · d634a590
      Barry Lind authored
        - Properly drop tables in jdbc regression tests with cascade for 7.3
        - problem with Statement.execute() and executeUpdate() not clearing binds
        - problem with ResultSet not correctly handling default encoding
        - changes to correctly support show transaction isolation level in 7.3
        - changed DatabaseMetaDataTest to handle differences in FK names in 7.3
        - better fix for dynamically checking server NAME data length
        (With the fixes above the jdbc regression tests pass on jdbc2 and jdbc3
         against both a 7.2 and 7.3 server)
      Patchs submitted by David Wall (d.wall@computer.org):
        - problem with getBlob when largeobject oid is null
        - improvements to BlobOutputStream
      Patch submitted by Haris Peco (snpe@snpe.co.yu):
        - problem with callable statement not supporting prepared statement methods
      
       Modified Files:
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc3/Jdbc3ResultSet.java
       	jdbc/org/postgresql/largeobject/BlobOutputStream.java
       	jdbc/org/postgresql/largeobject/LargeObject.java
       	jdbc/org/postgresql/test/TestUtil.java
       	jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
       	jdbc/org/postgresql/test/jdbc2/UpdateableResultTest.java
       	jdbc/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java
       	jdbc/org/postgresql/test/jdbc2/optional/ConnectionPoolTest.java
       	jdbc/org/postgresql/test/jdbc2/optional/SimpleDataSourceTest.java
      d634a590
  2. 06 Sep, 2002 1 commit
  3. 20 Aug, 2002 1 commit
    • Barry Lind's avatar
      Removed code that is no longer used and has been commented out · f736fdb0
      Barry Lind authored
      for the last two releases.
      
       Modified Files:
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/PG_Stream.java
       Removed Files:
       	jdbc/org/postgresql/core/BytePoolDim1.java
       	jdbc/org/postgresql/core/BytePoolDim2.java
       	jdbc/org/postgresql/core/MemoryPool.java
       	jdbc/org/postgresql/core/ObjectPool.java
       	jdbc/org/postgresql/core/SimpleObjectPool.java
      f736fdb0
  4. 26 Jul, 2002 1 commit
    • Barry Lind's avatar
      Fouth (and final) phase of restructuring to add jdbc3 support. · 40c44166
      Barry Lind authored
       Modified Files:
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc1/Jdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc2/Jdbc2Connection.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
       Added Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc1/Jdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/Jdbc1ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc2/Jdbc2DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSetMetaData.java
       Removed Files:
       	jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/ResultSetMetaData.java
      40c44166
  5. 23 Jul, 2002 1 commit
    • Barry Lind's avatar
      Initial restructuring to add jdbc3 support. There was a significant amount · 1e318736
      Barry Lind authored
      of duplicated code between the jdbc1 and jdbc2.  This checkin restructures
      the code so that the duplication is removed so that the jdbc3 support
      can be added without adding yet another copy of everything.  Also many
      classes were renamed to avoid confusion with multiple different objects
      having the same name.  The timestamp tests were also updated to add support
      for testing timestamp without time zone in addition to timestamp with time zone
      
       Modified Files:
       	jdbc/Makefile jdbc/build.xml jdbc/example/ImageViewer.java
       	jdbc/example/basic.java jdbc/example/blobtest.java
       	jdbc/example/threadsafe.java
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/Field.java
       	jdbc/org/postgresql/core/QueryExecutor.java
       	jdbc/org/postgresql/fastpath/Fastpath.java
       	jdbc/org/postgresql/jdbc1/CallableStatement.java
       	jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/PreparedStatement.java
       	jdbc/org/postgresql/jdbc2/Array.java
       	jdbc/org/postgresql/jdbc2/CallableStatement.java
       	jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/PreparedStatement.java
       	jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
       	jdbc/org/postgresql/largeobject/LargeObjectManager.java
       	jdbc/org/postgresql/largeobject/PGblob.java
       	jdbc/org/postgresql/largeobject/PGclob.java
       	jdbc/org/postgresql/test/jdbc2/BlobTest.java
       	jdbc/org/postgresql/test/jdbc2/ConnectionTest.java
       	jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
       	jdbc/org/postgresql/test/jdbc2/TimestampTest.java
       	jdbc/org/postgresql/test/jdbc2/UpdateableResultTest.java
       	jdbc/org/postgresql/util/Serialize.java
       Added Files:
       	jdbc/org/postgresql/PGConnection.java
       	jdbc/org/postgresql/PGStatement.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc1/Jdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/Jdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Connection.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/jdbc2/Jdbc2Connection.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/Jdbc2Statement.java
       Removed Files:
       	jdbc/org/postgresql/Connection.java
       	jdbc/org/postgresql/ResultSet.java
       	jdbc/org/postgresql/Statement.java
       	jdbc/org/postgresql/jdbc1/Connection.java
       	jdbc/org/postgresql/jdbc1/ResultSet.java
       	jdbc/org/postgresql/jdbc1/Statement.java
       	jdbc/org/postgresql/jdbc2/Connection.java
       	jdbc/org/postgresql/jdbc2/ResultSet.java
       	jdbc/org/postgresql/jdbc2/Statement.java
      1e318736
  6. 16 Jul, 2002 1 commit
  7. 10 Jul, 2002 1 commit
  8. 27 Jun, 2002 1 commit
  9. 11 Jun, 2002 1 commit
    • Barry Lind's avatar
      The patch does the following: · b465f530
      Barry Lind authored
        Allows you to set the loglevel at runtime by adding ?loglevel=X to the connection URL, where 1 = INFO and 2 = DEBUG.
        Automatically turns on logging by calling DriverManager.setPrintWriter(new PrintWriter(System.out)) if one is not already set.
      Adds a Driver.info() message that prints out the version number
      Adds member variables logDebug and logInfo that can be checked before making logging methods calls
      Adds a build number to the version number string.  This build number will need to be manually incremented when we see fit.
      
      ----------------------------------------------------------------------
      Modified Files:
       	org/postgresql/Connection.java org/postgresql/Driver.java.in
       	org/postgresql/fastpath/Fastpath.java
       	org/postgresql/jdbc1/DatabaseMetaData.java
       	org/postgresql/jdbc2/Connection.java
       	org/postgresql/jdbc2/DatabaseMetaData.java
       	org/postgresql/largeobject/LargeObjectManager.java
       	org/postgresql/util/PSQLException.java
       	org/postgresql/util/Serialize.java
      ----------------------------------------------------------------------
      b465f530
  10. 26 Mar, 2002 1 commit
  11. 16 Mar, 2002 1 commit
    • Dave Cramer's avatar
      fixed QueryExecuter to deal with multiple errors · 134fe5ec
      Dave Cramer authored
      previously it was throwing a SQLException as soon as the error message was
      received from the backend. This did not allow the protocol to finish properly
      now, simply collects error messages from the backend until the query is done
      and throws exception at the end
      Also added setLogLevel to Driver.java, and made the log levels public
      134fe5ec
  12. 19 Nov, 2001 1 commit
  13. 01 Nov, 2001 1 commit
  14. 31 Oct, 2001 1 commit
  15. 10 Sep, 2001 1 commit
    • Bruce Momjian's avatar
      Attached is a patch to add bytea support to JDBC. · ec0ad674
      Bruce Momjian authored
      This patch does the following:
      
      - Adds binary datatype support (bytea)
      - Changes getXXXStream()/setXXXStream() methods to be spec compliant
      - Adds ability to revert to old behavior
      
      Details:
      
      Adds support for the binary type bytea.  The ResultSet.getBytes() and
      PreparedStatement.setBytes() methods now work against columns of bytea
      type.  This is a change in behavior from the previous code which assumed
      the column type was OID and thus a LargeObject.  The new behavior is
      more complient with the JDBC spec as BLOB/CLOB are to be used for
      LargeObjects and the getBytes()/setBytes() methods are for the databases
      binary datatype (which is bytea in postgres).
      
      Changes the behavior of the getBinaryStream(), getAsciiStream(),
      getCharacterStream(), getUnicodeStream() and their setXXXStream()
      counterparts.  These methos now work against either the bytea type
      (BinaryStream) or the text types (AsciiStream, CharacterStream,
      UnicodeStream).  The previous behavior was that these all assumed the
      underlying column was of type OID and thus a LargeObject.  The
      spec/javadoc for these methods indicate that they are for LONGVARCHAR
      and LONGVARBINARY datatypes, which are distinct from the BLOB/CLOB
      datatypes.  Given that the bytea and text types support upto 1G, they
      are the LONGVARBINARY and LONGVARCHAR datatypes in postgres.
      
      Added support for turning off the above new functionality.  Given that
      the changes above are not backwardly compatible (however they are more
      spec complient), I added the ability to revert back to the old behavior.
        The Connection now takes an optional parameter named 'compatible'.  If
      the value of '7.1' is passed, the driver reverts to the 7.1 behavior.
      If the parameter is not passed or the value '7.2' is passed the behavior
      is the new behavior.  The mechanism put in place can be used in the
      future when/if similar needs arise to change behavior.  This is
      patterned after how Oracle does this (i.e. Oracle has a 'compatible'
      parameter that behaves in a similar manner).
      
      Misc fixes.  Cleaned up a few things I encountered along the way.
      
      
      Note that in testing the patch I needed to ignore whitespace differences
      in order to get it to apply cleanly (i.e. patch -l -i byteapatch.diff).
      Also this patch introduces a new file
      (src/interfaces/jdbc/org/postgresql/util/PGbytea.java).
      
      Barry Lind
      ec0ad674
  16. 04 Jul, 2001 1 commit
  17. 11 Mar, 2001 1 commit
  18. 05 Mar, 2001 1 commit
  19. 25 Jan, 2001 1 commit
    • Peter Mount's avatar
      Added an alternative constructor to PGSQLException so that debugging · f118c36a
      Peter Mount authored
                some more osteric bugs is easier. If only 1 arg is supplied and it's
                of type Exception, then that Exception's stacktrace is now included.
      
      This was done as there's been a report of an unusual bug during connection.
      This will make this sort of bug hunting easier from now on.
      f118c36a
  20. 20 Dec, 2000 1 commit
  21. 12 Oct, 2000 1 commit
  22. 12 Sep, 2000 2 commits
  23. 26 Apr, 2000 1 commit
  24. 14 Sep, 1999 1 commit
  25. 27 Jun, 1999 1 commit
  26. 23 Jun, 1999 1 commit
  27. 18 May, 1999 1 commit
  28. 17 May, 1999 2 commits
  29. 17 Jan, 1999 1 commit
    • 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
  30. 03 Sep, 1998 1 commit
  31. 09 Feb, 1998 1 commit
    • 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
  32. 11 Jan, 1998 1 commit
  33. 07 Nov, 1997 1 commit
  34. 31 Aug, 1997 1 commit
  35. 16 Aug, 1997 1 commit