Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmegE-0005ow-AM for pgsql-jdbc@arkaria.postgresql.org; Mon, 15 Nov 2021 16:18:02 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mmegC-0006YI-U8 for pgsql-jdbc@arkaria.postgresql.org; Mon, 15 Nov 2021 16:18:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmegC-0006Y8-LH for pgsql-jdbc@lists.postgresql.org; Mon, 15 Nov 2021 16:18:00 +0000 Received: from out-22.smtp.github.com ([192.30.252.205] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mmeg9-0006ZC-3b for pgsql-jdbc@lists.postgresql.org; Mon, 15 Nov 2021 16:18:00 +0000 Received: from github.com (hubbernetes-node-5478a13.ac4-iad.github.net [10.52.207.50]) by smtp.github.com (Postfix) with ESMTPA id 214A5560095 for ; Mon, 15 Nov 2021 08:17:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1636993075; bh=Qrp+767QcIzp+/Zz/Somc+DM0pneaLVGbYsfFwB4y9g=; h=Date:From:To:Subject:From; b=Aimt4SpjYIB+CQQ7fVTg9dSWPG1G86fp7SVy/kOZ6d4Wa09yxYMuI/4rgTZhAkX68 o3BYDCcuBaNkCC9ctbf9MCj39NvfI8ed6DjYDrTRqLLwdDrJUXffCLuQgT7nKU3S6n NCwuFOkbcgHMBmL9cdVXoM3r2I//OTaq0i2ztOT0= Date: Mon, 15 Nov 2021 08:17:55 -0800 From: Dave Cramer To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 138d58: Ms goodman time gettimestamp micros (#2181) 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: Archived-At: Precedence: bulk Branch: refs/heads/master Home: https://github.com/pgjdbc/pgjdbc Commit: 138d589592babba2a14cb6c6db8dc6f9a159495f https://github.com/pgjdbc/pgjdbc/commit/138d589592babba2a14cb6c6db8dc6f9a159495f Author: Dave Cramer Date: 2021-11-15 (Mon, 15 Nov 2021) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java M pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/TimestampTest.java Log Message: ----------- Ms goodman time gettimestamp micros (#2181) * fix: add microsecond precision to getTimestamp() called on sql TIME(6) Currently, "when fetching a value of type TIME(6) through resultSet.getTimestamp() only ms precision is retained, the microsecond fractional digits are lost." This change will retain the microsecond precision when .getTimestamp() is called on TIME(6). Closes #1537 * add handling for binary representation of timetz, add to timezonetest * make toTimestampBin arguments nullable * Correct getTime when type is DATE * fix: add microsecond precision to getTimestamp() called on sql TIME(6) Co-authored-by: Mike Goodman