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 1m93qS-0001hN-5r for pgsql-jdbc@arkaria.postgresql.org; Thu, 29 Jul 2021 11:04:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1m93qR-000568-5z for pgsql-jdbc@arkaria.postgresql.org; Thu, 29 Jul 2021 11:04:55 +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 1m93qQ-00055s-Uq for pgsql-jdbc@lists.postgresql.org; Thu, 29 Jul 2021 11:04:54 +0000 Received: from out-26.smtp.github.com ([192.30.252.209] 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 1m93qP-0002Zp-8g for pgsql-jdbc@lists.postgresql.org; Thu, 29 Jul 2021 11:04:54 +0000 Received: from github.com (hubbernetes-node-818a524.ash1-iad.github.net [10.56.113.62]) by smtp.github.com (Postfix) with ESMTPA id 60BB05E075F for ; Thu, 29 Jul 2021 04:04:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1627556691; bh=cmAp/8oajA9ZAgQJbwxnQ2wt2Z8LsTrPrPG3PXqsZ7w=; h=Date:From:To:Subject:From; b=GHjOMey3u26DALSt0iIJKwoAI9RqFhbZ3DPW8K4mwWxXygWbuHktcttS+xbIkLz7m dVZ7eK6eni9VYqLHF+vOQ2B1ff+pzp4GaEIQ/zKdI+HmkaMcf1NPkcT8BmB5PxpOtf xaUTt8Qmh9cdZfFBNSndqM189EinKpQ2PIYL8ElY= Date: Thu, 29 Jul 2021 04:04:51 -0700 From: MMeent To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] 151b28: Fix issue #2215 (#2217) 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: 151b287732a551c380dcaa34f9c0549aeeb26208 https://github.com/pgjdbc/pgjdbc/commit/151b287732a551c380dcaa34f9c0549aeeb26208 Author: MMeent Date: 2021-07-29 (Thu, 29 Jul 2021) Changed paths: M pgjdbc/src/main/java/org/postgresql/core/TypeInfo.java M pgjdbc/src/main/java/org/postgresql/jdbc/PgDatabaseMetaData.java M pgjdbc/src/main/java/org/postgresql/jdbc/TypeInfoCache.java M pgjdbc/src/test/java/org/postgresql/test/jdbc42/DatabaseMetaDataTest.java Log Message: ----------- Fix issue #2215 (#2217) Correctly handle the non-signedness of OIDs in relation to signed java integers in the new OID-based type cache. Previously, this would cause 'bad value for type int'-errors, now this is correctly handled both ways in this part of the code. Co-authored-by: Matthias van de Meent