Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:97330 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 21491 invoked from network); 7 Dec 2016 22:14:01 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Dec 2016 22:14:01 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@beccati.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=php@beccati.com; 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:40390] helo=box.beccati.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/B0-11772-6A988485 for ; Wed, 07 Dec 2016 17:13:59 -0500 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 84ADE200228; Wed, 7 Dec 2016 23:13:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=beccati.com; s=mail; t=1481148835; bh=hw1TunSk0LeDcR6r/xhGjRCQQp1TU3wUwqDOFq4UqgM=; h=Subject:To:References:From:Date:In-Reply-To:From; b=HX+/eEX9MHD2WjYmS141uO2K52+0gAi6nT91wyxM/JZ+3H/emC/+kim5PhcFpAX8U kOkn8L66j0mGPBonW+BPcHhPQ48OEqtpTluL6tnEmenW6ajLHY7PQhaDRo9gK49too 1FJsEGC3Y2pabFz9Rb5xoNSIEnQKSV7KsymnNJ6q6dYWJBrtQav3tzbLCFDMqweVPe YWo/JjtTeZxKAUyju3UcBH93RJJ4mRW1nx1Ej+BGe+HjujOvZiS+OcjVU8OH1n4cYF Cu8jmjyu66pBeYUnFnQRuyKytx9Q0kB7/HfTS9/LM4vvMQ2PA0NDEjwsD0Z70J3jpw YrPKyVZTN+9Uw== To: Adam Baratz , "internals@lists.php.net" References: Message-ID: Date: Wed, 7 Dec 2016 23:13:53 +0100 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] PDO::PARAM_DOUBLE From: php@beccati.com (Matteo Beccati) Hi, On 07/12/2016 22:39, Adam Baratz wrote: > If you want to bind a double to a statement, the accepted approach is to > bind as a string: > http://stackoverflow.com/questions/2718628/pdoparam-for-type-decimal For decimal, double wouldn't be the correct type anyway, as it could cause loss of precision. > Is there a reason PDO::PARAM_DOUBLE doesn't exist? I don't know if there's am historical reason. I think it should be there, but to be honest, I'm not sure it's worth the effort at this point. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/