1. 17 9月, 2003 1 次提交
  2. 13 9月, 2003 1 次提交
    • B
      More SQLState updates from Kim Ho at Redhat. · 509a9cd3
      Barry Lind 提交于
      Also a patch from Kris Jurka to correctly report SQLState support.
      
       Modified Files:
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/core/QueryExecutor.java
       	jdbc/org/postgresql/fastpath/Fastpath.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/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSetMetaData.java
       	jdbc/org/postgresql/jdbc2/Array.java
       	jdbc/org/postgresql/jdbc3/AbstractJdbc3DatabaseMetaData.java
       	jdbc/org/postgresql/util/PGmoney.java
       	jdbc/org/postgresql/util/PSQLState.java
      509a9cd3
  3. 09 9月, 2003 2 次提交
    • B
      Additional SQLState work for JDBC - thanks to Kim Ho at Redhat for input on this · 5cdf771d
      Barry Lind 提交于
       Modified Files:
       	jdbc/build.xml jdbc/org/postgresql/core/QueryExecutor.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/util/PSQLState.java
      5cdf771d
    • B
      This set of changes applies a patch from KHO at redhat to add some SQLState · 0378a269
      Barry Lind 提交于
      support to the jdbc driver.
      That patch needed some work: it assumed the sqlcode in a server message was
      fixed in its position, the patch lost the ability to pass exceptions, and the
      patch missed a couple of places where server errors where being received.
      In addition to fixing the above, I also added full support for the V3 protocol
      error message syntax, I reversed the order of arguments in the PSQLException
      constructor to more closely follow the constructors for SQLException, I changed
      the new constructors that take PSQLState to take Object for additional
      parameters as the old ones did.
      Still todo are to add SQLState values to all existing exceptions thrown in the
      driver and add support for parsing the V3 protocol format for notices.
      
       Modified Files:
       	jdbc/build.xml jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/errors.properties
       	jdbc/org/postgresql/core/Encoding.java
       	jdbc/org/postgresql/core/PGStream.java
       	jdbc/org/postgresql/core/QueryExecutor.java
       	jdbc/org/postgresql/fastpath/Fastpath.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/util/MessageTranslator.java
       	jdbc/org/postgresql/util/PSQLException.java
      0378a269
  4. 26 8月, 2003 1 次提交
    • B
      Attempt to fix setMaxFieldSize() logic that was checked in yesterday. · 06bbd98a
      Barry Lind 提交于
      I think this should fix the problem, but since I don't have a reproducable test
      case, I can't be sure.  This problem is reported by Kim Ho of redhat, who will
      test this fix.  This also includes a test case for the original functionality.
      
       Modified Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/test/jdbc2/ResultSetTest.java
      06bbd98a
  5. 25 8月, 2003 1 次提交
    • B
      Applied patches from Oliver Jowett to fix the following bugs: · 2495365d
      Barry Lind 提交于
       - adds a finalizer method to AbstractJdbc1Statement to clean up in the case of
         poor user code which fails to close the statement object
       - fix ant build file to correctly detect dependencies across jdbc1/jdbc2/jdbc3
       - fix a coupld of server prepared statement bugs and added regression test for
         them
      Applied patch from Kim Ho:
       - adds support for get/setMaxFieldSize().
      Also fixed build.xml to provide a better error message in the event that an
      older version of the driver exists in the classpath when trying to build.
      2495365d
  6. 12 8月, 2003 1 次提交
  7. 07 8月, 2003 1 次提交
    • B
      Sometimes the third time is the charm. Third try to fix the sql injection · acf09c64
      Barry Lind 提交于
      vulnerability.  This fix completely removes the ability (hack) of being able
      to bind a list of values in an in clause.  It was demonstrated that by allowing
      that functionality you open up the possibility for certain types of
      sql injection attacks.  The previous fix attempts all focused on preventing
      the insertion of additional sql statements (the semi-colon problem:
      xxx; any new sql statement here).  But that still left the ability to
      change the where clause on the current statement or perform a subselect
      which can circumvent applicaiton security logic and/or allow you to call
      any stored function.
      
       Modified Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
      acf09c64
  8. 24 7月, 2003 1 次提交
    • B
      Fixes additional sql injection vulnerabilities reported by Oliver Jowett · a7a012d1
      Barry Lind 提交于
      and Dmitry Tkach.  Specifically the previous fix still allowed the statement termination character through in unquoted places in the sql statement, and the driver never correctly handled someone passing a value of \0 in a string which under the v2 protocol would end the statement causing the following text to possibly
      be treated as a new sql statement
       Modified Files:
       	jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
      a7a012d1
  9. 22 7月, 2003 1 次提交
  10. 09 7月, 2003 1 次提交
  11. 01 7月, 2003 2 次提交
    • D
      patches by Kim Ho to fix · df08f5c0
      Dave Cramer 提交于
      getByte, getSort if input has decimal or whitespace
      setObject if object is a BIT
      boolean not on list of SQLKeywords
      df08f5c0
    • B
      Patches applied: · 9af05a9d
      Barry Lind 提交于
      	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
  12. 29 5月, 2003 3 次提交
  13. 04 5月, 2003 1 次提交
    • B
      Patch to fix up LONGVARBINARY support submitted by Amit Gollapudi · 5295fffc
      Barry Lind 提交于
      (agollapudi@demandsolutions.com).
      Also applied the RefCursor support patch by Nic Ferrier.  This patch allows
      you too return a get a result set from a function that returns a refcursor.
      For example:
      call.registerOutParameter(1, Types.OTHER);
      call.execute();
      ResultSet rs = (ResultSet) call.getObject(1);
      
      Modified Files:
       	jdbc/org/postgresql/core/BaseStatement.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc1/Jdbc1CallableStatement.java
       	jdbc/org/postgresql/jdbc1/Jdbc1PreparedStatement.java
       	jdbc/org/postgresql/jdbc1/Jdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2ResultSet.java
       	jdbc/org/postgresql/jdbc2/Jdbc2CallableStatement.java
       	jdbc/org/postgresql/jdbc2/Jdbc2PreparedStatement.java
       	jdbc/org/postgresql/jdbc2/Jdbc2Statement.java
       	jdbc/org/postgresql/jdbc3/Jdbc3CallableStatement.java
       	jdbc/org/postgresql/jdbc3/Jdbc3PreparedStatement.java
       	jdbc/org/postgresql/jdbc3/Jdbc3Statement.java
       Added Files:
       	jdbc/org/postgresql/PGRefCursorResultSet.java
       	jdbc/org/postgresql/jdbc1/Jdbc1RefCursorResultSet.java
       	jdbc/org/postgresql/jdbc2/Jdbc2RefCursorResultSet.java
       	jdbc/org/postgresql/jdbc3/Jdbc3RefCursorResultSet.java
       	jdbc/org/postgresql/test/jdbc2/RefCursorTest.java
      5295fffc
  14. 17 4月, 2003 1 次提交
    • B
      Applied patches from Kris Jurka fixing a string tokenizing problem and · 0b88b637
      Barry Lind 提交于
      fixing an order by problem for index metadata results.
      Also includes removing some unused code as well as a fix to the toString
      method on statement.
      
       Modified Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
      0b88b637
  15. 13 4月, 2003 1 次提交
  16. 08 3月, 2003 1 次提交
    • B
      Cleanup and reorganization. · 6ee060f2
      Barry Lind 提交于
        - 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
  17. 10 2月, 2003 1 次提交
    • B
      Better error message on character set mismatches during conversion to unicode. · abcec0c1
      Barry Lind 提交于
      Also applied patch from Lars Stenberg to make callable statements use the form
      select * from func() when running against a 7.3 server instead of select func() to allow for set returning functions to be called.
      
       Modified Files:
       	jdbc/org/postgresql/errors.properties
       	jdbc/org/postgresql/core/Encoding.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
      abcec0c1
  18. 04 2月, 2003 2 次提交
  19. 20 11月, 2002 1 次提交
    • B
      Fixed bug reported by Marko Strukelj and Keith Wannamaker. Using executeBatch · 54bc3b6b
      Barry Lind 提交于
      on a preparedStatement would reset the prepared statment causing subsequent
      uses of the preparedStatement to fail (i.e. the following series of calls
      would fail: addBatch() executeBatch() addBatch() executBatch()).  This is
      a regression from 7.2 where this worked correctly.  The regression test has
      also been modified to explicitly test for this case.
      
       Modified Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
       	jdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java
       	jdbc/org/postgresql/test/jdbc2/BatchExecuteTest.java
      54bc3b6b
  20. 14 11月, 2002 1 次提交
    • B
      Applied patch submitted by Mats Lofkvist fixing serious threading problem introduced in beta3. · cfae0733
      Barry Lind 提交于
      Fixed bug with using setNull()(or setXXX(x, null))  and serverside prepare statements.
      Improved error message when using a connection object that has already been closed.
      
      
       Modified Files:
       	jdbc/org/postgresql/errors.properties
       	jdbc/org/postgresql/core/Encoding.java
       	jdbc/org/postgresql/core/QueryExecutor.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Statement.java
      cfae0733
  21. 20 10月, 2002 1 次提交
  22. 01 10月, 2002 1 次提交
  23. 14 9月, 2002 1 次提交
  24. 11 9月, 2002 1 次提交
    • B
      Patches submitted by Kris Jurka (jurka@ejurka.com) for the following bugs: · d634a590
      Barry Lind 提交于
        - 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
  25. 08 9月, 2002 1 次提交
    • B
      Fixed DatabaseMetaData to correctly handle NAME size of 64 · 62da2fa0
      Barry Lind 提交于
      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
  26. 07 9月, 2002 1 次提交
  27. 02 9月, 2002 1 次提交
    • B
      JDBC checkin fixing the following bugs: · 2232172e
      Barry Lind 提交于
        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
  28. 24 8月, 2002 1 次提交
    • B
      Enhancements to how queries with bind values are stored internally and sent to · fe2dec75
      Barry Lind 提交于
      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
  29. 17 8月, 2002 1 次提交
  30. 26 7月, 2002 1 次提交
    • B
      Third phase of restructuring to add jdbc3 support. · 68c6eff9
      Barry Lind 提交于
       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
  31. 25 7月, 2002 1 次提交
  32. 23 7月, 2002 1 次提交
    • B
      Initial restructuring to add jdbc3 support. There was a significant amount · 1e318736
      Barry Lind 提交于
      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
  33. 06 3月, 2002 1 次提交
  34. 26 2月, 2002 1 次提交
  35. 26 11月, 2001 1 次提交
    • B
      This patch fixes a bug reported by Graham Leggett (minfrin@sharp.fm). · 4bc8c8dd
      Barry Lind 提交于
      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