1. 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
  2. 17 8月, 2002 1 次提交
  3. 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
  4. 25 7月, 2002 1 次提交
  5. 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
  6. 06 3月, 2002 1 次提交
  7. 26 2月, 2002 1 次提交
  8. 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
  9. 20 11月, 2001 2 次提交
  10. 25 10月, 2001 1 次提交
  11. 17 9月, 2001 1 次提交
    • B
      I'm attaching a patch which fixes the corruption in strings caused · 6e63468f
      Bruce Momjian 提交于
      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
  12. 10 8月, 2001 1 次提交
    • B
      Attached is a patch to remove some redundant code in the JDBC driver. · 454f44e8
      Bruce Momjian 提交于
      * 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
  13. 31 1月, 2001 1 次提交