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 1qlRcI-002oTs-7B for pgsql-jdbc@arkaria.postgresql.org; Wed, 27 Sep 2023 10:18:02 +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 1qlRcG-002r3G-5v for pgsql-jdbc@arkaria.postgresql.org; Wed, 27 Sep 2023 10:18:00 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qlRcF-002r2t-UG for pgsql-jdbc@lists.postgresql.org; Wed, 27 Sep 2023 10:17:59 +0000 Received: from pgintl.fastcrypt.com ([149.56.129.164]) by makus.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qlRcD-006uPN-DO for pgsql-jdbc@postgresql.org; Wed, 27 Sep 2023 10:17:58 +0000 Received: from mail-lj1-f178.google.com (mail-lj1-f178.google.com [209.85.208.178]) by pgintl.fastcrypt.com (Postfix) with ESMTPSA id 384DC201A1 for ; Wed, 27 Sep 2023 06:17:56 -0400 (EDT) Received: by mail-lj1-f178.google.com with SMTP id 38308e7fff4ca-2c12ae20a5cso174387721fa.2 for ; Wed, 27 Sep 2023 03:17:56 -0700 (PDT) X-Gm-Message-State: AOJu0YxD3u2iDW6dIV5ixBwQTXkiC9jw8RRb8VYlqnlH9THcvcZS5T5A 5DnTrJWMMunQsBM4LFVdGaJgA8fvpP+xLwkqPYw= X-Google-Smtp-Source: AGHT+IHJTnIDdnKxP5UZKQ9JGxLYvgXHDjeJyIbjJUI11Zt4PbC5/jQIGpbuVvoab2uh6tukyUjOL/FO96d60QpNKi4= X-Received: by 2002:a2e:9c53:0:b0:2bf:7894:a490 with SMTP id t19-20020a2e9c53000000b002bf7894a490mr1586219ljj.38.1695809874548; Wed, 27 Sep 2023 03:17:54 -0700 (PDT) MIME-Version: 1.0 References: <8d8ea6c9-85a6-d1b8-309d-b1f5bc590840@cloud.gatewaynet.com> In-Reply-To: From: Dave Cramer Date: Wed, 27 Sep 2023 06:17:37 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Regarding useObjects To: Achilleas Mantzios - cloud Cc: Vladimir Sitnikov , pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary="0000000000002ddd9006065481f6" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --0000000000002ddd9006065481f6 Content-Type: text/plain; charset="UTF-8" On Wed, 27 Sept 2023 at 06:07, Achilleas Mantzios - cloud < a.mantzios@cloud.gatewaynet.com> wrote: > > On 9/27/23 12:55, Vladimir Sitnikov wrote: > > > So the problem with using float instead of Float is that it is > impossible to have a null float and arrays can have nulls. > > There's a feature request for retrieving primitive arrays: > https://github.com/pgjdbc/pgjdbc/issues/2939 > > back in pre-postgresql-42* days we used to use -888 and -888.888 to > represent int NULL and float NULL respectively, quite ...primitive but it > worked. We should retain this old mapping , but once all systems are up to > date we will start storing and reading NULLs in arrays as NULLs. > Using that mapping is not something that we would entertain. If you are going to actually store NULL in the array, how would that work with primitives ? Dave > > Vladimir > > --0000000000002ddd9006065481f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Wed, 27 Sept 2023 at 06:07, Achill= eas Mantzios - cloud <a.mantzios@cloud.gatewaynet.com> wrote:
=20 =20 =20


On 9/27/23 12:55, Vladimir Sitnikov wrote:
=20
> So the problem with using float instead of Float is that it is impossible to have a null float and arrays can have nulls.

There's a feature request for retrieving primitive arrays: http= s://github.com/pgjdbc/pgjdbc/issues/2939

back in pre-postgresql-42* days we used to use -888 and -888.888 to represent int NULL and float NULL respectively, quite ...primitive but it worked. We should retain this old mapping , but once all systems are up to date we will start storing and reading NULLs in arrays as NULLs.

Using that mapping is not something that we would entertain.= =C2=A0

If you are going to actually store NULL in = the array, how would that work with primitives ?

D= ave


Vladimir

--0000000000002ddd9006065481f6--