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. 16 8月, 2003 1 次提交
  7. 12 8月, 2003 2 次提交
  8. 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
  9. 06 8月, 2003 1 次提交
  10. 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
  11. 22 7月, 2003 1 次提交
  12. 09 7月, 2003 1 次提交
  13. 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
  14. 30 5月, 2003 1 次提交
  15. 29 5月, 2003 4 次提交
  16. 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
  17. 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
  18. 13 4月, 2003 1 次提交
  19. 25 3月, 2003 1 次提交
  20. 24 3月, 2003 1 次提交
  21. 19 3月, 2003 1 次提交
  22. 08 3月, 2003 2 次提交
    • B
      Applied patch from Paul Sorenson to correctly handle schema names in updateable result sets. · 05a966fc
      Barry Lind 提交于
      Applied patch from Rich Cullingford to fix a NPE in the absolute() method of result set.
      Applied patch from Tarjei Skorgenes to fix a NPE when logging is enabled.
      
       Modified Files:
       	jdbc/org/postgresql/core/BaseResultSet.java
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/jdbc2/Array.java
       	jdbc/org/postgresql/util/PSQLException.java
      05a966fc
    • 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
  23. 27 2月, 2003 1 次提交
    • B
      Added support for SSL in the jdbc driver · 1cc55168
      Barry Lind 提交于
       Modified Files:
       	jdbc/build.xml jdbc/org/postgresql/Driver.java.in
       	jdbc/org/postgresql/PG_Stream.java
       	jdbc/org/postgresql/errors.properties
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1Connection.java
       	jdbc/org/postgresql/util/PSQLException.java
      1cc55168
  24. 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
  25. 07 2月, 2003 1 次提交
  26. 05 2月, 2003 1 次提交
  27. 04 2月, 2003 2 次提交
  28. 14 1月, 2003 2 次提交
    • B
      Patch from Florian Wunderlich to correctly support java Timestamps. Previously · feefc329
      Barry Lind 提交于
      the code would only capture milliseconds where as both postgres and the java
      Timestamp object support greater resolution.
      Also fixed a bug reported by Rhett Sutphin where the last digit of the
      fractional seconds was lost when using timestamp without time zone
      
       Modified Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1ResultSet.java
       	jdbc/org/postgresql/test/jdbc2/TimestampTest.java
      feefc329
    • B
      Patch from Kris Jurka to improve the performance of getImportedKeys(). · 88e52406
      Barry Lind 提交于
      Use explicit joins to avoid using the genetic query optimizer.  Also fixed
      a regression test that was failing to compile.  This change also cleans up
      how key names are reported as per:
      A change to the value of the FK_NAME column.  Currently the returned value
      is the triggers arguments which look like
      
      "<unnamed>\000t2\000t1\000UNSPECIFIED\000a\000a\000"
      
      This was required for server versions < 7.3 when a user did not supply
      constraint names.  Every constraint was named "<unnamed>"
      .  7.3 has enforced unique constraint names per table so unnamed foreign
      keys will have different names "$1", "$2" and so on.  I've used logic
      along the lines of the following to preserve the unique names in the
      original scheme, but allow people who go to the trouble of naming their
      constraints to see them:
      
      if (triggerargs.startsWith("<unnamed>")) {
      	fkname = [the whole ugly trigger args name originally used];
      } else {
      	fkname = [the actual fk name];
      }
      
       Modified Files:
       	jdbc/org/postgresql/jdbc1/AbstractJdbc1DatabaseMetaData.java
       	jdbc/org/postgresql/test/jdbc2/optional/ConnectionPoolTest.java
      88e52406
  29. 20 12月, 2002 1 次提交
  30. 12 12月, 2002 1 次提交
  31. 05 12月, 2002 1 次提交