Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwTC7-0000rr-Ql for pgsql-jdbc@arkaria.postgresql.org; Tue, 28 Jan 2020 15:54:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1iwTC6-0002lu-CL for pgsql-jdbc@arkaria.postgresql.org; Tue, 28 Jan 2020 15:54:26 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1iwTC5-0002lm-VV for pgsql-jdbc@lists.postgresql.org; Tue, 28 Jan 2020 15:54:26 +0000 Received: from out-1.smtp.github.com ([192.30.252.192]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iwTC3-0001mr-3y for pgsql-jdbc@lists.postgresql.org; Tue, 28 Jan 2020 15:54:24 +0000 Received: from github-lowworker-c53a806.ac4-iad.github.net (github-lowworker-c53a806.ac4-iad.github.net [10.52.23.45]) by smtp.github.com (Postfix) with ESMTP id 12E90C60B21 for ; Tue, 28 Jan 2020 07:54:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1580226862; bh=DawPPaTX7trgLQgoNHCg0vXBBx5JKiTAZzUotB4saPY=; h=Date:From:To:Subject:From; b=T+JCRAGWtfMVS+LJMM8y8NlYQvHq5iIgyFE6Jjd1AWjLdZl/UEAReC11OIa9y5Nch 6IgIfx4Zr0O5pG5cBYvr95blSa0JjrKZfS2wwT0Pd//BGVw9pMAGFQhDgldF9zQcK8 2RzSq68dbcE6W6nU5lu5rVWlkwOh+voaSEtilfR0= Date: Tue, 28 Jan 2020 07:54:22 -0800 From: Svein Baardsen To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] e38868: fix: #1677 NumberFormatException when fetching PGI... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: e38868b29cafa7e8a9a5db67adb5a67cc2b5f230 https://github.com/pgjdbc/pgjdbc/commit/e38868b29cafa7e8a9a5db67adb5a67cc2b5f230 Author: Svein Baardsen Date: 2020-01-28 (Tue, 28 Jan 2020) Changed paths: M pgjdbc/src/main/java/org/postgresql/util/PGInterval.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/IntervalTest.java Log Message: ----------- fix: #1677 NumberFormatException when fetching PGInterval with small value (#1678) * fix: #1677 NumberFormatException when fetching PGInterval with small value * fix: PGInterval.getValue for microsecond values * ensure getValue always uses at least one decimal place for seconds * fix: PGInterval.getSeconds for microsecond values