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 1qYB4r-000yZ1-1q for pgsql-general@arkaria.postgresql.org; Mon, 21 Aug 2023 20:00:41 +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 1qYB4o-00ASwD-7r for pgsql-general@arkaria.postgresql.org; Mon, 21 Aug 2023 20:00:38 +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 1qYB4n-00ASw5-SS for pgsql-general@lists.postgresql.org; Mon, 21 Aug 2023 20:00:37 +0000 Received: from mail-yw1-x1130.google.com ([2607:f8b0:4864:20::1130]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qYB4k-000EOq-Pw for pgsql-general@lists.postgresql.org; Mon, 21 Aug 2023 20:00:37 +0000 Received: by mail-yw1-x1130.google.com with SMTP id 00721157ae682-5922380064bso13015357b3.2 for ; Mon, 21 Aug 2023 13:00:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692648033; x=1693252833; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:from:to:cc:subject:date:message-id :reply-to; bh=iMPIaKHnjQInEhiozeTQUIae1ZQVFIetnCQGHkbpl9Q=; b=aAlZbRw43vmmLCoDVBRADJV7P3dlI3aik1jZD19Qpugz1I1IYvG/zJv2Z1Ub5zotTw a3+2CDO7nCb38aAAEZlHmmRVv6QwdPTO2yGJpmfFGzzW6oN8vYM6DelNGGqGngS2F1yu NFQEwCVJQTy9x2HRVbWtXAeownvfd/3aHj01oYV+HUB9HFSL5xz9kNBhcyB3/NGbyBXE Q4q1DR/9YB1Z/raUzVm3v9/v86swYGuwwUdHx0D8wqDHMmCqPGXb4nYrOvLSOM9PnK4x 5/eei/4IXI5aLpfKyD1/RKvpF6vKlP8/Jy2Ih6jfVSDA/67k3cs1YoI4BmDAhjcNU7hp 5ovg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692648033; x=1693252833; h=in-reply-to:from:references:to:content-language:subject:user-agent :mime-version:date:message-id:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=iMPIaKHnjQInEhiozeTQUIae1ZQVFIetnCQGHkbpl9Q=; b=iWyaEcgSlYPyl7VFyUvbZVOfUkdYFMdU7vLJsGHGZj4C0xhLae83kz9F+1jo46efTn IRmRKTuX0rQaAv/s0+XryB93xglXtddADHJ1iTv1Sju4/t9Q8kxN/iJ1tnZept7ykqR9 F6ipCpi6uhqnS8rP6OLLApzgMJQ+7PutkHg/CywkWIbxDhys92NTvnMIL48aHTA6AdAT VCzvWlvVwFMdgW6cmXiZWg1TC8YhJTJl75lCllYc6zOBfoD/AeXW+VQ5aej6gJaIp9pP Pwv5oU2wDN1KYUjbrWC8BhIlvLcv+zxwLYK/xKFxA+Nd5/CL3JP2q0u5+muTBUgN7Bgb QZHw== X-Gm-Message-State: AOJu0YxfeFzaBOPSPr3XSEHWQXbTcw/UlWoDMS+PLyEuf7Wjw+mmUIcS ifC0OtihA8xh8M3z4xFz5dhtTDP4llQ= X-Google-Smtp-Source: AGHT+IHygPHi+CVgDM3V2Iga2/T1BOxdv0fkO70/HqZlMUs0GQKmw+XXJYgp6//Hrfa8QmGC5gh/WQ== X-Received: by 2002:a0d:d882:0:b0:586:9c7a:d9ec with SMTP id a124-20020a0dd882000000b005869c7ad9ecmr8932769ywe.9.1692648032722; Mon, 21 Aug 2023 13:00:32 -0700 (PDT) Received: from ?IPV6:2600:1700:bd2c:b810:6806:eeb6:3a6:c040? ([2600:1700:bd2c:b810:6806:eeb6:3a6:c040]) by smtp.googlemail.com with ESMTPSA id o79-20020a0dcc52000000b00570589c5aedsm2408742ywd.7.2023.08.21.13.00.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 21 Aug 2023 13:00:32 -0700 (PDT) Content-Type: multipart/alternative; boundary="------------8TSctOCxfPSCEifWBHOquwxJ" Message-ID: <5eced581-3b03-2c51-7bf8-946f34bd968e@gmail.com> Date: Mon, 21 Aug 2023 15:00:31 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: The same prepared query yield "-1" the first six times and then "-1.0" Content-Language: en-US To: pgsql-general@lists.postgresql.org References: <5C40B9CC-40E4-4AC5-95A1-E5A521C282EF@gmail.com> <4e6d74b2-8beb-079d-4db1-f729fa76b7c2@aklaver.com> <7C9C6D48-804A-44F7-836B-8B8AEE6D60CA@gmail.com> From: Ron In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk This is a multi-part message in MIME format. --------------8TSctOCxfPSCEifWBHOquwxJ Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 8/21/23 14:32, Dave Cramer wrote: [snip] > It has to do with the way the data is being transferred. When the driver > switches to a named statement it also switches to binary mode which means > data will be transferred in binary. > > In text we get -1, in binary we get -1.0 That seems odd.  Why does it do that? -- Born in Arizona, moved to Babylonia. --------------8TSctOCxfPSCEifWBHOquwxJ Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit On 8/21/23 14:32, Dave Cramer wrote:
[snip]
It has to do with the way the data is being transferred. When the driver switches to a named statement it also switches to binary mode which means data will be transferred in binary. 

In text we get -1, in binary we get -1.0

That seems odd.  Why does it do that?

--
Born in Arizona, moved to Babylonia.
--------------8TSctOCxfPSCEifWBHOquwxJ--