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 1pG2FD-0007sR-2F for pgsql-jdbc@arkaria.postgresql.org; Thu, 12 Jan 2023 18:24:07 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1pG2FB-0003Eu-UA for pgsql-jdbc@arkaria.postgresql.org; Thu, 12 Jan 2023 18:24:05 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pG2FB-0003El-MI for pgsql-jdbc@lists.postgresql.org; Thu, 12 Jan 2023 18:24:05 +0000 Received: from out-26.smtp.github.com ([192.30.252.209] helo=smtp.github.com) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pG2F4-0003bQ-VW for pgsql-jdbc@lists.postgresql.org; Thu, 12 Jan 2023 18:24:04 +0000 Received: from github.com (hubbernetes-node-804aca2.ash1-iad.github.net [10.56.201.105]) by smtp.github.com (Postfix) with ESMTPA id 90A115E0C0E for ; Thu, 12 Jan 2023 10:23:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1673547837; bh=PaRlOHTxeqZJsGHvjL9PQ/jaCRboojq2JcOcHGDkeO0=; h=Date:From:To:Subject:From; b=zOIKXUOEXpaESuTp7as+1HwakaDpZfY6gxsSN/rbJWujtbIdnIeyykwvOgjcGSCG6 VlL51kf/TOxsY4jXkrJGqMQtF7vtXAtjrjOk9yeU4vQIChi9Urzi6/qZ3nxb9lxn8q kOv8hMk+WPzGM4t7V/nkoCFB+t2tSr5VYHGjn7/4= Date: Thu, 12 Jan 2023 10:23:57 -0800 From: Dave Cramer To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 104d2e: redo PR fix_binary_transfer_floating point from b... 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: 104d2e79f9291822bd0116af82595b0b5a4c4fc7 https://github.com/pgjdbc/pgjdbc/commit/104d2e79f9291822bd0116af82595b0b5a4c4fc7 Author: Dave Cramer Date: 2023-01-12 (Thu, 12 Jan 2023) Changed paths: M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java M pgjdbc/src/test/java/org/postgresql/test/jdbc2/ResultSetTest.java Log Message: ----------- redo PR fix_binary_transfer_floating point from brett, removed BigDecimal where possible (#2719) * redo pr from brett, removed BigDecimal where possible * Use double LONG_MAX instead of float. Fix binary readLong to be compatible with how strings are read * convert to BigInteger and then test * cast to double * make tests easier to read