Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:99041 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34472 invoked from network); 15 May 2017 12:54:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2017 12:54:27 -0000 Authentication-Results: pb1.pair.com header.from=adambaratz@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=adam.baratz@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.172 as permitted sender) X-PHP-List-Original-Sender: adam.baratz@gmail.com X-Host-Fingerprint: 209.85.216.172 mail-qt0-f172.google.com Received: from [209.85.216.172] ([209.85.216.172:36803] helo=mail-qt0-f172.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 45/19-15531-105A9195 for ; Mon, 15 May 2017 08:54:25 -0400 Received: by mail-qt0-f172.google.com with SMTP id f55so43552524qta.3 for ; Mon, 15 May 2017 05:54:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=ZpSW5WXvMV6w1TeeHZtR0RWthWpqsC0458Dnx4NRVmY=; b=l852G21Xt49nOK1K0enPdUvnv1ck7m4oIKf61gP+SYBJ62kJrYfmtDAr+dHG19MPMv EbrL1M+J7gK8wtEKK86WKSBx7vywHxrlOaKdkO2PGeIUWUuuzFtiVaA67h525U6CcoQX uBNA2YogZhZ7Pgnz1wkKvM4MISfajojNp6Sh//qB8qX7MVQFg6D+x6F73O6b0BxmVKks kzqxAADZq4eT3V3AAwCYVq2kn+vluxcIBTSO+WjByGySGp21QtgCg+IjuAahaQz0dxhU fvxCv//W+4QXCbyEBkT5ycCqUXRMtuOzcTyzhfhvyVZimzyi5yVfnlY7hV/Y0tRQStXz 7PRA== X-Gm-Message-State: AODbwcB1ykNpAMb+FrWODUXwFNiocHwgPUlhPgpJiPJXtlBh5xqbHOOi N/v3NpjDull3D4ahDGU= X-Received: by 10.200.49.182 with SMTP id h51mr4933120qte.176.1494852862558; Mon, 15 May 2017 05:54:22 -0700 (PDT) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com. [209.85.220.181]) by smtp.gmail.com with ESMTPSA id e9sm8101586qkb.23.2017.05.15.05.54.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 15 May 2017 05:54:22 -0700 (PDT) Received: by mail-qk0-f181.google.com with SMTP id k74so94079033qke.1 for ; Mon, 15 May 2017 05:54:21 -0700 (PDT) X-Received: by 10.55.15.143 with SMTP id 15mr4765150qkp.44.1494852861689; Mon, 15 May 2017 05:54:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.27 with HTTP; Mon, 15 May 2017 05:54:20 -0700 (PDT) In-Reply-To: References: Date: Mon, 15 May 2017 14:54:20 +0200 X-Gmail-Original-Message-ID: Message-ID: To: Matteo Beccati Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary="001a1146cc10d0048c054f8f8da8" Subject: Re: [PHP-DEV] Re: [VOTE] PDO Float Type From: adambaratz@php.net (Adam Baratz) --001a1146cc10d0048c054f8f8da8 Content-Type: text/plain; charset="UTF-8" > > > I had a request on the PR[1] to rename the const, from PDO::PARAM_FLT to > > PDO::PARAM_FLOAT. Agree that readability is better here. Since there's > been > > a change, I'll plan on opening the vote tomorrow. > > Are you kidding me? > You can't possibly think that changing the constant name resets the > cooldown counter. I don't. I posted a new version of the RFC on May 1st. These are the notes I sent to this list: Most of the discussion in the last round was about fixed precision types. > Since there was a lot of disagreement around the right way to handle them, > I'd like to keep them out of this RFC. I know Matteo wanted to get them > into this RFC, but I'd rather do less if it increases the chances that a > group can agree. Nothing in this RFC should interfere with a future > implementation of fixed precision types. > I added a PR to show how this feature would be implemented. It should make > it clear that very little change is needed to open up this functionality. I > avoided mixing in type casts or any special formatting to keep things safe > and simple. This allowed me to streamline the examples in the RFC quite a > bit. > It would be helpful to get feedback from anyone who voted "no" previously, > but didn't comment in the thread. There's no need to talk through this RFC > again if everyone in that group wants fixed precision types to be included. I think this changes the substance of the proposal, in which case there wouldn't need to be a cooldown period. It's okay if you disagree, but you can say so much instead of accusing me of acting in bad faith. I don't know how my emails come across. I apologize if I seem antagonistic. I'm not trying to rile you up. I'm just an engineer trying to figure out how to solve a technical problem. And I'm trying to get a solution that will please as many people as possible, including you. You could quite easily work around it by embedding your floats in the > SQL command string instead. Which is basically what emulated prepares > would do for you. > Yes, that would generate the right query, but it could make it difficult to improve its execution plan in the future. For example, I'm looking into an approach that would bring real prepared statements to pdo_dblib: https://bugs.php.net/bug.php?id=74592 If float parameters aren't bound, each value would result in a new execution plan, which would negate a lot of the benefit of having prepared statements. I kept these kinds of details out of the RFC on purpose. I have my use cases, but the maintainers of the other drivers should decide how they want to handle floats. I just want to add the hook so the information is there if anyone wants to use it. Thanks, Adam --001a1146cc10d0048c054f8f8da8--