Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98988 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 34287 invoked from network); 9 May 2017 18:02:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 May 2017 18:02:04 -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.220.169 as permitted sender) X-PHP-List-Original-Sender: adam.baratz@gmail.com X-Host-Fingerprint: 209.85.220.169 mail-qk0-f169.google.com Received: from [209.85.220.169] ([209.85.220.169:35294] helo=mail-qk0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 10/44-04607-B1402195 for ; Tue, 09 May 2017 14:02:03 -0400 Received: by mail-qk0-f169.google.com with SMTP id a72so7962480qkj.2 for ; Tue, 09 May 2017 11:02:03 -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=adRBYYGXQHvfgy0kfgM/farn1NsVpkQHZcXdbLfYmzI=; b=BnALG3bftr9+tlEJ4soYicCF5dF//tf4K34WS6WTrLx7jTTp/j0m+EZEd0f/A5LcEP hyxFM8OOy03yy7LJ1qtvAucZjQzNdKuxFur4sXkt2PE1i3QUtVfRwHSdCI1pAmBYvBNu XZn/F4FyprUYizf/GN10etn/Rqt9eZXqH/JY39U982UWO2igbaPYcavboDjHc+ia2j2a 5vtz5Ae29BaDyA5TCDsq0j4h39GF030porHSZrFGo9X9pOUf9acUHmxYMMk+Q3lCHR75 J/h8idD2QUYGfRQc2msmmzmlkbgDm0elkvCcryRPiG37GLL6TJE2RN6BfC95c8bX0QPf FbfQ== X-Gm-Message-State: AODbwcCd1MVaHkI137IUUFkTFdfWfFr+33m8SQ4wwS24EFrGLABaVagt f2FyrMYD2COO4tSaaK4= X-Received: by 10.55.91.133 with SMTP id p127mr1541331qkb.280.1494352920708; Tue, 09 May 2017 11:02:00 -0700 (PDT) Received: from mail-qk0-f175.google.com (mail-qk0-f175.google.com. [209.85.220.175]) by smtp.gmail.com with ESMTPSA id p52sm451696qta.49.2017.05.09.11.02.00 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 May 2017 11:02:00 -0700 (PDT) Received: by mail-qk0-f175.google.com with SMTP id y201so8107169qka.0 for ; Tue, 09 May 2017 11:02:00 -0700 (PDT) X-Received: by 10.55.150.133 with SMTP id y127mr1468951qkd.230.1494352919880; Tue, 09 May 2017 11:01:59 -0700 (PDT) MIME-Version: 1.0 Received: by 10.12.152.27 with HTTP; Tue, 9 May 2017 11:01:59 -0700 (PDT) In-Reply-To: References: Date: Tue, 9 May 2017 14:01:59 -0400 X-Gmail-Original-Message-ID: Message-ID: To: Marco Pivetta Cc: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=94eb2c07cd46f56afe054f1b261a Subject: Re: [PHP-DEV] Re: [VOTE] PDO Float Type From: adambaratz@php.net (Adam Baratz) --94eb2c07cd46f56afe054f1b261a Content-Type: text/plain; charset=UTF-8 Hi, Thanks for the feedback. I voted "no" because for very little improvement (which really isn't worth > it) > It would help me to understand why you think this. It's difficult to generate queries with the best execution plans if the type information isn't good. Floating point values are part of SQL. Is your thought that they aren't used enough, that this implementation is missing something, or something else? * users foot-gunning themselves due to misuse of float values (yes, they > will put floats where real is needed) > Did you see the latest rev of the RFC? It should address this point. If you pass a string and label it PDO::PARAM_FLT, only emulated prepares and pdo_sqlite will cast it to a float. And that's only for consistency with how they handle other types. Does that make you more comfortable? Or is there another use case you're concerned about? That said, see https://wiki.php.net/rfc/voting#resurrecting_rejected_propos > als about resurrecting the vote: it will need to wait a few months. > Based on previous feedback, I thought the new version was materially different. But if a handful of voters from the last round respond and say that these changes won't change their vote, then sure, there's no point in rerunning this. Thanks, Adam --94eb2c07cd46f56afe054f1b261a--