1. 03 10月, 2016 4 次提交
  2. 02 10月, 2016 4 次提交
  3. 29 9月, 2016 1 次提交
  4. 28 9月, 2016 3 次提交
  5. 27 9月, 2016 1 次提交
  6. 25 9月, 2016 3 次提交
  7. 24 9月, 2016 3 次提交
  8. 21 9月, 2016 2 次提交
    • Noel Grandin's avatar
      Merge pull request #360 from marschall/timestamp-with-timezone-return-int · ddaa9950
      Noel Grandin 提交于
      Change getters in TimestampWithTimeZone to int
      ddaa9950
    • Philippe Marschall's avatar
      Change getters in TimestampWithTimeZone to int · 9c3478e4
      Philippe Marschall 提交于
      The convenience accessors getYear getMonth and getDay in
      TimestampWithTimeZone return long even though their values fall within
      the range of int. This makes them a bit inconvenient to work with as
      most APIs (Calendar, LocalDateTime) take int for such values.
      
      This commit contains the following changes
      
       - change TimestampWithTimeZone#getYear() to return an int instead of
         a long
       - change TimestampWithTimeZone#getMonth() to return an int instead of
         a long
       - change TimestampWithTimeZone#getDay() to return an int instead of
         a long
      9c3478e4
  9. 16 9月, 2016 5 次提交
  10. 13 9月, 2016 2 次提交
  11. 12 9月, 2016 2 次提交
  12. 09 9月, 2016 3 次提交
  13. 08 9月, 2016 1 次提交
  14. 07 9月, 2016 2 次提交
  15. 06 9月, 2016 2 次提交
  16. 05 9月, 2016 2 次提交
    • Sergi Vladykin's avatar
      Merge pull request #351 from kostya-sh/bind-formatCode · 45fe1a64
      Sergi Vladykin 提交于
      Respect format codes from Bind message when sending results
      45fe1a64
    • 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