Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98777 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20451 invoked from network); 12 Apr 2017 15:50:58 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Apr 2017 15:50:58 -0000 Authentication-Results: pb1.pair.com header.from=php@beccati.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain beccati.com designates 176.9.123.236 as permitted sender) X-PHP-List-Original-Sender: php@beccati.com X-Host-Fingerprint: 176.9.123.236 box.beccati.com Received: from [176.9.123.236] ([176.9.123.236:55264] helo=box.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id AD/C9-18853-1EC4EE85 for ; Wed, 12 Apr 2017 11:50:58 -0400 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 C8D192000C0; Wed, 12 Apr 2017 17:50:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1492012254; bh=gWhf6LMqxnA0tvmISxqR67qJALgsYbcJWNuFjnIlo/4=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=eV09DYIQ6NYHSgjBo/j0Up7E5jfhGUsUzBjIGBsVksBEskyaq1GwXhLjsHHyuaSzY CG6Aq2kh94fOUL39w55tOcVwvlfaUNuiuyTOPMwvdIndQQLJpYgisrAMQWoLdJ3Q0H PCjoasG/iqqUQwp4Hm6YNTlSRd/bA24G+0Iq0gJ8SIQk0YWA2rnAlLiT/HW2C4imXv 27H/hTW73tMu/yYw1JW58EsTjkR73yoilDDbwfoCkW1k+ofmSlUntUkK9NgG18IVA/ boxDLDbthHmKKu8fYRWyhoS0FyIFEgcME98P4hot02D8jXmtB0roaVEBGs7kzVK/Rt zwvLg1olDp1qQ== To: Adam Baratz References: <5e3e3e9b-f5b9-a19e-c4cb-6af0f5985d94@beccati.com> <8923084a-a357-91e9-44b5-52a4af0a5df1@beccati.com> Cc: "internals@lists.php.net" , Andrea Faulds Message-ID: <86e4681f-9030-80fc-896b-56255c4b84c7@beccati.com> Date: Wed, 12 Apr 2017 17:50:53 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] PDO Float Type From: php@beccati.com (Matteo Beccati) On 12/04/2017 17:21, Adam Baratz wrote: >> >>> I'd suggest adding a warning to the manual instead. >> >> I think that's a requirement in any case. > > > I'd be most comfortable with this approach. I'd worry about adding a > PDO::PARAM_NUMERIC type without investigating how it needs to function for > each DB, which feels like scope creep. If it starts off as an alias for > PDO::PARAM_STR, there could be issues updating it to work correctly, > especially if the right design involves modeling the precision somewhere. I > added a "Future Scope" section covering this. > > Let me know if there are major problems with this or other points to cover. > Otherwise, I'll aim to open voting on Monday. Let's just agree to disagree. I believe they should be investigated and proposed in a single RFC. Having just one and relying on an obscure documentation warning is not enough IMHO. Even your RFC claims that it should be used for numeric types :( "This test was repeated using the numeric type for the number column." Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/