Skip to content
Snippets Groups Projects
  1. Oct 19, 2002
  2. Oct 01, 2002
  3. Sep 14, 2002
  4. 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
  5. Sep 08, 2002
    • Barry Lind's avatar
      Fixed DatabaseMetaData to correctly handle NAME size of 64 · 62da2fa0
      Barry Lind authored
      Fixed Statement to correctly DEALLOCATE any prepared statements
      
       Modified Files:
       	jdbc/org/postgresql/PGStatement.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
      62da2fa0
  6. Sep 06, 2002
  7. Sep 02, 2002
    • Barry Lind's avatar
      JDBC checkin fixing the following bugs: · 2232172e
      Barry Lind authored
        Fixed support in the driver for notifications (added PGConnection.getNotifications()) - problem reported by Benjamin.Feinstein@guardent.com
        Worked around server problems with int8/int2 and constants; quote values when they are intended to bind to an int8/int2 column - reported by many
        Fixed bug in the Array interface with string parsing not handling escaped characters correctly - reported by devajx@yahoo.com
        Added workaround to support 'infinity' and '-infinity' for dates - reported bydmitry@openratings.com
        Fixed some performance issues with setBlob - reported by d.wall@computer.org
        Added support for using new prepared statements functionality in 7.3 (added PGStatement.setUseServerPrepare() and isUseServerPrepare() methods)
      
       Modified Files:
       	jdbc/org/postgresql/PGConnection.java
       	jdbc/org/postgresql/PGStatement.java
       	jdbc/org/postgresql/core/QueryExecutor.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/jdbc2/Array.java
       Added Files:
       	jdbc/org/postgresql/PGNotification.java
       	jdbc/org/postgresql/core/Notification.java
      2232172e
  8. Aug 23, 2002
    • Barry Lind's avatar
      Enhancements to how queries with bind values are stored internally and sent to · fe2dec75
      Barry Lind authored
      the server.  Previously we allocated a new String object for the entire final
      query we were sending to the database.  If you had a big query, or especially
      if you had large bind values you ended up with essentially two copies in memory.
      This change will reuse the existing objects and therefore should take 1/2 the
      memory it does today for a given query.  This restructuring will also allow
      in the future the ability to stream bytea data to the server instead of the current approach of pulling it all into memory.
      I also fixed a test that was failing on a 7.2 database.
      Also renamed some internal variables and some minor cleanup.
      
       Modified Files:
       	jdbc/org/postgresql/core/QueryExecutor.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/test/jdbc2/DatabaseMetaDataTest.java
      fe2dec75
  9. Aug 16, 2002
  10. Jul 26, 2002
    • Barry Lind's avatar
      Third phase of restructuring to add jdbc3 support. · 68c6eff9
      Barry Lind authored
       Modified Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc1/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/Jdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/Jdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/jdbc2/Array.java
       	jdbc/org/postgresql/jdbc2/DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc2/Jdbc2Connection.java
       	jdbc/org/postgresql/jdbc2/Jdbc2ResultSet.java
       Added Files:
       	jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java
       	jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java
       Removed Files:
       	jdbc/org/postgresql/jdbc1/CallableStatement.java
       	jdbc/org/postgresql/jdbc2/CallableStatement.java
       	jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
      68c6eff9
  11. Jul 25, 2002
  12. 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
  13. Mar 05, 2002
  14. Feb 26, 2002
  15. Nov 26, 2001
    • Barry Lind's avatar
      This patch fixes a bug reported by Graham Leggett (minfrin@sharp.fm). · 4bc8c8dd
      Barry Lind authored
      The bug was that any insert or update would fail if the returned oid was
      larger than a signed int.  Since OIDs are unsigned int's it was
      a bug that the code used a java signed int to deal with the values.  The bug
      would result in the error message: "Unable to fathom update count".
      While fixing the bug, it became apparent that other code made a similar
      assumption about OIDs being signed ints.  Therefore some methods that returned
      or took OIDs are arguements also needed to be changed.
      Since we are so close to the 7.2 release I have added new methods that
      return longs and deprecated the old methods returning ints.  Therefore all
      old code should still work without requiring a code change to cast from long to int.  Also note that the methods below are PostgreSQL specific extensions to
      the JDBC api are are not part of the spec from Sun, thus it is unlikely that
      they are used much or at all.
      
      The deprecated methods are:
        ResultSet.getInsertedOID()
        Statement.getInsertedOID()
        Serialize.store()
        Connection.putObject()
      and are replaced by:
        ResultSet.getLastOID()
        Statement.getLastOID()
        Serialize.storeObject()
        Connection.storeObject()
      All the deprecated methods returned int, while their replacements return long
      
      This patch also fixes two comments in MD5Digest that the author Jeremy Wohl
      submitted.
      
      --Barry
      4bc8c8dd
  16. Nov 20, 2001
  17. Nov 19, 2001
  18. Oct 25, 2001
  19. Sep 17, 2001
    • Bruce Momjian's avatar
      I'm attaching a patch which fixes the corruption in strings caused · 6e63468f
      Bruce Momjian authored
      by escape processing in the SQL statement. I've tested this for a
      while now and it appears to work well. Previously string data
      with {d was getting corrupt as the {d was being stripped regardless
      of whether it was an escape code or not.
      
      I also added checking for time and timestamp escape processing strings
      as per 11.3 in the specification. The patch is against the latest
      CVS.
      
      Thomas O'Dowd
      6e63468f
  20. Aug 10, 2001
    • Bruce Momjian's avatar
      Attached is a patch to remove some redundant code in the JDBC driver. · 454f44e8
      Bruce Momjian authored
      * Merges identical code from org.postgresql.jdbc[1|2].Statement into
        org.postgresql.Statement.
      * Moves escapeSQL() method from Connection to Statement (the only place
        it's used)
      * Minor cleanup of the new isolation level stuff.
      * Minor cleanup of version string handling.
      
      Anders Bengtsson
      454f44e8
  21. Jan 31, 2001
Loading