1. 03 11月, 2016 3 次提交
    • Noel Grandin's avatar
      d78bc2a3
    • Noel Grandin's avatar
      revert some debug code · c8333c59
      Noel Grandin 提交于
      c8333c59
    • Noel Grandin's avatar
      improve stability of unit tests · 00a114a7
      Noel Grandin 提交于
      TestMemoryUsage would sometimes manage to overrun it's loop bounds and
      enter an infinite loop.
      
      TestMultiThread would sometimes timeout if the machine was busy.
      
      TestOutOfMemory could sometimes fail, and would then cause future tests
      to fail because it held onto the memory.
      
      FilePathReorderWrites was not deleting it's subsidiary memFS: data.
      
      TestPreparedStatement::testDateTime8 had a typo.
      
      The change to TestMVStore::testCacheSize I'm not sure about.
      00a114a7
  2. 02 11月, 2016 3 次提交
  3. 31 10月, 2016 1 次提交
  4. 30 10月, 2016 2 次提交
    • Thomas Mueller Graf's avatar
      Javadocs, formatting · 1576ebc5
      Thomas Mueller Graf 提交于
      1576ebc5
    • Philippe Marschall's avatar
      Add JSR-310 Support (#386) · f4507bb3
      Philippe Marschall 提交于
      Add support for Java 8 Date and Time API AKA JSR-310. On the face of it
      the existing JDBC types java.sql.Date, java.sql.Time and
      java.sql.Timestamp offer conversion methods to and from JSR-310 data
      types. Unfortunately java.sql.Timestamp does silent data truncation
      when the timestamp falls into a DST transition on the JVM time zone.
      Worse still for java.time.OffsetDateTime there is no corresponding JDBC
      type. Therefore these conversions have to be implemented. All of this
      has to be programmed using reflection so the code compiles and can be
      executed on Java 7.
      f4507bb3
  5. 26 10月, 2016 2 次提交
  6. 23 10月, 2016 1 次提交
  7. 21 10月, 2016 2 次提交
  8. 16 10月, 2016 1 次提交
  9. 13 10月, 2016 2 次提交
  10. 11 10月, 2016 1 次提交
  11. 08 10月, 2016 1 次提交
  12. 05 10月, 2016 1 次提交
  13. 03 10月, 2016 1 次提交
  14. 28 9月, 2016 1 次提交
  15. 25 9月, 2016 3 次提交
  16. 24 9月, 2016 1 次提交
    • Philippe Marschall's avatar
      Improve TimestampWithTimeZone javadoc · 411d6a15
      Philippe Marschall 提交于
      I found the comments in TimestampWithTimeZone not helpful in
      understanding the semantics of the public methods.
      
      This commit includes the following changes
      
       - add comments to previously not commented public methods in
         TimestampWithTimeZone that describe the semantics
       - add more verifications to TestTimeStampWithTimeZone to make sure the
         actual behavior matches the documented behavior
      411d6a15
  17. 16 9月, 2016 1 次提交
    • Philippe Marschall's avatar
      Add support for getObject(int|String, Class) · 79965db6
      Philippe Marschall 提交于
      Both JdbcResultSet and JdbcCallableStatement currently do not support
      getObject(int, Class) and getObject(String, Class) but support is easy
      to add.
      
      This commits contains the following changes:
      
       - add support for getObject(int, Class) and getObject(String, Class)
          with the following types: BigDecimal, String, Boolean, Byte, Short,
         Integer, Long, Float, Double, Date, Time, Timestamp, UUID,
         TimestampWithTimeZone and Geometry subclasses
       - extend the existing getObject tests to cover these new methods
      
      Most notably missing is support for LOBs and arrays including primitive
      arrays but this can always be added later.
      79965db6
  18. 12 9月, 2016 1 次提交
  19. 09 9月, 2016 3 次提交
  20. 08 9月, 2016 1 次提交
  21. 07 9月, 2016 1 次提交
  22. 06 9月, 2016 1 次提交
  23. 05 9月, 2016 2 次提交
    • Konstantin Shaposhnikov's avatar
      pg: respect format codes from Bind message when sending results · 696a50ed
      Konstantin Shaposhnikov 提交于
      From https://www.postgresql.org/docs/9.1/static/protocol-message-formats.html:
      
        Bind (F)
      
        ...
      
        After the last parameter, the following fields appear:
      
        Int16
      
          The number of result-column format codes that follow (denoted R
          below). This can be zero to indicate that there are no result
          columns or that the result columns should all use the default
          format (text); or one, in which case the specified format code is
          applied to all result columns (if any); or it can equal the actual
          number of result columns of the query.
      
        Int16[R]
      
          The result-column format codes. Each must presently be zero (text)
          or one (binary).
      
      Also fix testBinaryTypes test:
      
      - force binary by setting prepareThreshold to -1
      - handle REAL type as float
      
      Without the fix the corrected test testBinaryTypes fails:
      
        05:25:02 21:55:02.666 org.h2.test.unit.TestPgServer Expected: 12345678 actual: 825373492
        Exception in thread "main" java.lang.AssertionError: Expected: 12345678 actual: 825373492
            at org.h2.test.TestBase.fail(TestBase.java:464)
            at org.h2.test.TestBase.assertEquals(TestBase.java:617)
            at org.h2.test.unit.TestPgServer.testBinaryTypes(TestPgServer.java:404)
            at org.h2.test.unit.TestPgServer.test(TestPgServer.java:51)
            at org.h2.test.unit.TestPgServer.main(TestPgServer.java:41)
      696a50ed
    • Noel Grandin's avatar
      fix test case · 51dcde95
      Noel Grandin 提交于
      bug introduced with 29c9cc75 "Merge pull request #323 from
      Akkuzin/regexp_match_enhance"
      51dcde95
  24. 04 9月, 2016 4 次提交