Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:113534 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 36160 invoked from network); 15 Mar 2021 13:19:04 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 15 Mar 2021 13:19:04 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id EAE901804E3 for ; Mon, 15 Mar 2021 06:12:34 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=BAYES_05,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS autolearn=no autolearn_force=no version=3.4.2 X-Spam-Virus: No X-Envelope-From: Received: from box.beccati.com (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Mon, 15 Mar 2021 06:12:34 -0700 (PDT) Received: from authenticated-user (box.beccati.com [176.9.123.236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by box.beccati.com (Postfix) with ESMTPSA id 7D18B200244; Mon, 15 Mar 2021 14:12:32 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1615813952; bh=P02zY91rq5kBunwNtxmijgmyM3hBlwscp3WJZfBQ1j4=; h=Date:Subject:To:References:From:In-Reply-To:From; b=Z8+xcwu2xvazy8inpI2TDPrhNXOOGIM8Eaff/p22g7tNBB96PQa/lCyYcbEkBpk3e AoIhOl34JeqhHRnQDuhmoWLyMXoMGqL78KjlCWxgFY+gBj9oe63k5drzGpLEZKFirt PT3eS92FRDJ8A/G8oZPYeJX9HriQbDuS8zZW/NcAy96/rmRGmQ75gg+9oGOvO6mfgR UHGGNCYvPv4FoXYfQc4s/yWJ5uKsDn+T2FkK41K2tGJc9MGZHdNugnds2+6xxcsBWV z5elgpGvLyGm2uZzV/eKHlOPWR+mTszi8eqQ+a4z7M5GZy7c7oq2qcIRW9xyE492Dl Y5o0Mho7FTikg== Message-ID: <163c35c6-90ba-c343-b64d-d17f2e2b7766@beccati.com> Date: Mon, 15 Mar 2021 14:12:31 +0100 MIME-Version: 1.0 Content-Language: en-GB To: Benjamin Morel , PHP Internals References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PDO::PARAM_INT and pgsql driver From: php@beccati.com (Matteo Beccati) Hi, On 14/03/2021 21:18, Benjamin Morel wrote: > This is because the pgsql driver seems to treat everything as PARAM_STR, > despite being explicitly requested to bind the value as PARAM_INT; the > placeholder is therefore replaced with the string '4326' instead of the > integer 4326. > > [...] > > Is there any reason why the pgsql driver doesn't respect PDO::PARAM_STR? Looks like a bug to me. I thought this had been fixed a while back, but apparently it wasn't. I'll try to find some time to investigate in the next few days. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/