Skip to content
Snippets Groups Projects
  1. Jul 22, 2003
  2. Jul 21, 2003
  3. Jun 30, 2003
    • Barry Lind's avatar
      Patches applied: · 9af05a9d
      Barry Lind authored
      	1) Patch from Kris Jurka to fix IPv6 parsing of the jdbc URL
      	2) Patch from Kris Jurka to fix an ArrayIndexOutOfBounds error
      	   when calling moveToCurrentRow while currentRow is "beforeFirst"
      	3) Patch from Kim Ho to fix add some bounds checking in setMaxRows(),
      	   setQueryTimeout(), setFetchSize()
      
       Modified Files:
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/errors.properties
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
      9af05a9d
  4. May 29, 2003
  5. Mar 24, 2003
  6. Mar 07, 2003
    • Barry Lind's avatar
      Cleanup and reorganization. · 6ee060f2
      Barry Lind authored
        - Added a private api layer (org.postgresql.core.Base*)
        - Cleaned up public api (org.postgresql.PG*)
        - Added consistent headers and copywrite info
        - Removed deprecated Serialize functionality
        - Cleaned up imports
        - Moved some files to more appropriate locations
      
       Modified Files:
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/PGConnection.java
       	jdbc/org/postgresql/PGNotification.java
       	jdbc/org/postgresql/PGStatement.java
       	jdbc/org/postgresql/core/Encoding.java
       	jdbc/org/postgresql/core/Notification.java
       	jdbc/org/postgresql/core/QueryExecutor.java
       	jdbc/org/postgresql/core/StartupPacket.java
       	jdbc/org/postgresql/fastpath/Fastpath.java
       	jdbc/org/postgresql/fastpath/FastpathArg.java
       	jdbc/org/postgresql/geometric/PGbox.java
       	jdbc/org/postgresql/geometric/PGcircle.java
       	jdbc/org/postgresql/geometric/PGline.java
       	jdbc/org/postgresql/geometric/PGlseg.java
       	jdbc/org/postgresql/geometric/PGpath.java
       	jdbc/org/postgresql/geometric/PGpoint.java
       	jdbc/org/postgresql/geometric/PGpolygon.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java
       	jdbc/org/postgresql/jdbc1/Jdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/Jdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/Jdbc1PreparedStatement.java
       	jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/Jdbc1ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc1/Jdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Blob.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Clob.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Connection.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/jdbc2/Array.java
       	jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java
       	jdbc/org/postgresql/jdbc2/Jdbc2Connection.java
       	jdbc/org/postgresql/jdbc2/Jdbc2PreparedStatement.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc2/Jdbc2Statement.java
       	jdbc/org/postgresql/jdbc3/AbstractJdbc3ResultSet.java
       	jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java
       	jdbc/org/postgresql/jdbc3/Jdbc3Connection.java
       	jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java
       	jdbc/org/postgresql/jdbc3/Jdbc3ResultSet.java
       	jdbc/org/postgresql/jdbc3/Jdbc3ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc3/Jdbc3Statement.java
       	jdbc/org/postgresql/largeobject/BlobInputStream.java
       	jdbc/org/postgresql/largeobject/BlobOutputStream.java
       	jdbc/org/postgresql/largeobject/LargeObject.java
       	jdbc/org/postgresql/largeobject/LargeObjectManager.java
       	jdbc/org/postgresql/test/jdbc2/Jdbc2TestSuite.java
       	jdbc/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java
       	jdbc/org/postgresql/util/MD5Digest.java
       	jdbc/org/postgresql/util/MessageTranslator.java
       	jdbc/org/postgresql/util/PGbytea.java
       	jdbc/org/postgresql/util/PGmoney.java
       	jdbc/org/postgresql/util/PGobject.java
       	jdbc/org/postgresql/util/PGtokenizer.java
       	jdbc/org/postgresql/util/PSQLException.java
       	jdbc/org/postgresql/util/UnixCrypt.java
       Added Files:
       	jdbc/org/postgresql/core/BaseConnection.java
       	jdbc/org/postgresql/core/BaseResultSet.java
       	jdbc/org/postgresql/core/BaseStatement.java
       	jdbc/org/postgresql/core/Field.java
       	jdbc/org/postgresql/core/PGStream.java
       Removed Files:
       	jdbc/org/postgresql/Field.java
       	jdbc/org/postgresql/PG_Stream.java
       	jdbc/org/postgresql/test/jdbc2/SerializeObject.java
       	jdbc/org/postgresql/test/jdbc2/SerializeTest.java
       	jdbc/org/postgresql/util/Serialize.java
      6ee060f2
  7. Feb 27, 2003
  8. Feb 10, 2003
  9. Jan 14, 2003
  10. Sep 25, 2002
    • Barry Lind's avatar
      Applied patch from Aaron Mulder (ammulder@alumni.princeton.edu) that fixes · 7bf1c8b0
      Barry Lind authored
      jdbc datasource support for jdk1.4/jdbc3
      
       Modified Files:
       	jdbc/build.xml jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/jdbc2/optional/BaseDataSource.java
       	jdbc/org/postgresql/jdbc2/optional/PGObjectFactory.java
       	jdbc/org/postgresql/jdbc2/optional/PooledConnectionImpl.java
       	jdbc/org/postgresql/jdbc2/optional/PoolingDataSource.java
       	jdbc/org/postgresql/test/jdbc2/optional/BaseDataSourceTest.java
       	jdbc/org/postgresql/test/jdbc2/optional/OptionalTestSuite.java
       	jdbc/org/postgresql/test/jdbc3/Jdbc3TestSuite.java
       Added Files:
       	jdbc/org/postgresql/jdbc3/Jdbc3ConnectionPool.java
       	jdbc/org/postgresql/jdbc3/Jdbc3ObjectFactory.java
       	jdbc/org/postgresql/jdbc3/Jdbc3PooledConnection.java
       	jdbc/org/postgresql/jdbc3/Jdbc3PoolingDataSource.java
       	jdbc/org/postgresql/jdbc3/Jdbc3SimpleDataSource.java
       	jdbc/org/postgresql/test/jdbc2/optional/PoolingDataSourceTest.java
       	jdbc/org/postgresql/test/jdbc3/Jdbc3ConnectionPoolTest.java
       	jdbc/org/postgresql/test/jdbc3/Jdbc3PoolingDataSourceTest.java
       	jdbc/org/postgresql/test/jdbc3/Jdbc3SimpleDataSourceTest.java
       	jdbc/org/postgresql/test/util/MiniJndiContext.java
       	jdbc/org/postgresql/test/util/MiniJndiContextFactory.java
      7bf1c8b0
  11. Sep 11, 2002
    • 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
  12. Sep 06, 2002
  13. Aug 20, 2002
    • 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
  14. Jul 26, 2002
    • 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
  15. Jul 23, 2002
    • 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
  16. Jul 16, 2002
  17. Jul 10, 2002
  18. Jun 27, 2002
  19. Jun 11, 2002
    • 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
  20. Mar 26, 2002
  21. Mar 16, 2002
    • 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
  22. Nov 19, 2001
  23. Nov 01, 2001
  24. Oct 31, 2001
  25. Sep 10, 2001
    • 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
  26. Jul 04, 2001
  27. Mar 11, 2001
  28. Mar 05, 2001
  29. Jan 25, 2001
  30. Dec 20, 2000
  31. Oct 12, 2000
  32. Sep 12, 2000
  33. Apr 26, 2000
  34. Sep 14, 1999
  35. Jun 27, 1999
  36. Jun 23, 1999
  37. May 19, 1999
Loading