Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlQOs-002jAJ-GO for pgsql-jdbc@arkaria.postgresql.org; Wed, 27 Sep 2023 09:00:06 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qlQOq-001w4W-3Y for pgsql-jdbc@arkaria.postgresql.org; Wed, 27 Sep 2023 09:00:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlQOp-001w45-RI for pgsql-jdbc@lists.postgresql.org; Wed, 27 Sep 2023 09:00:03 +0000 Received: from cloud.gatewaynet.com ([185.90.37.94]) by magus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlQOm-007rPp-9E for pgsql-jdbc@postgresql.org; Wed, 27 Sep 2023 09:00:02 +0000 Message-ID: <8d8ea6c9-85a6-d1b8-309d-b1f5bc590840@cloud.gatewaynet.com> Date: Wed, 27 Sep 2023 11:59:57 +0300 MIME-Version: 1.0 Subject: Re: Regarding useObjects Content-Language: en-US To: Vladimir Sitnikov Cc: pgsql-jdbc@postgresql.org References: From: Achilleas Mantzios - cloud In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Good Day Vladimir On 9/27/23 09:03, Vladimir Sitnikov wrote: >> so there was the option to change this to false and recompile > We try doing our best to keep backward compatibility both > compilation-wise and behaviour-wise. > However, we treat "private fields and methods" as private, and we do > not expect people would depend on them. > If you have to modify sources or depend on private APIs I would > suggest raising an issue or PR so it could be incorporated > into the driver itself. > > Would you please provide a test case of what you are doing with PgArray? > What is exactly the sequence of JDBC calls, the actual and the > expected outcomes in your case? E.g. for the case of floats, we have to change all: java.sql.Array arr = rs.getArray(1); Object objarr = arr.getArray(); float flarr[] = (float[]) objarr; to java.sql.Array arr = rs.getArray(1); Object objarr = arr.getArray(); Float flarr[] = (Float[]) objarr; > > The mentioned "useObjects" has been removed in > https://github.com/pgjdbc/pgjdbc/pull/1194 (Refactor decoding arrays) > > Vladimir