Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15182 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 80866 invoked by uid 1010); 25 Feb 2005 15:57:46 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 94383 invoked from network); 24 Feb 2005 15:20:56 -0000 Received: from unknown (HELO gmail.com) (127.0.0.1) by localhost with SMTP; 24 Feb 2005 15:20:56 -0000 X-Host-Fingerprint: 64.233.184.194 wproxy.gmail.com Linux 2.4/2.6 Received: from ([64.233.184.194:10343] helo=wproxy.gmail.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 44/F9-43751-8D0FD124 for ; Thu, 24 Feb 2005 10:20:56 -0500 Received: by wproxy.gmail.com with SMTP id 63so146046wri for ; Thu, 24 Feb 2005 07:20:54 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=Ri0v4sRbFc6TZVGvtX2WtJSffLLCjDwmWVX+hAAOCzK9qzHvVXJgIJLhBUDkcAio2mFiAlQJrUn1mbfOGnPYkEEm+yXEz2UDGBbgr+Ievy1WuWKCs9ojUcdLm00yqH+6CUL5XTugf93KHIgM/N8ZWjb+XXCJAPMF9hh/m+fQH6g= Received: by 10.54.59.8 with SMTP id h8mr194258wra; Thu, 24 Feb 2005 07:20:53 -0800 (PST) Received: by 10.54.59.22 with HTTP; Thu, 24 Feb 2005 07:20:53 -0800 (PST) Message-ID: <4e89b4260502240720f1ddd87@mail.gmail.com> Date: Thu, 24 Feb 2005 10:20:53 -0500 Reply-To: Wez Furlong To: Ard Biesheuvel Cc: internals@lists.php.net In-Reply-To: <20050224104731.13444.qmail@lists.php.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <20050224104731.13444.qmail@lists.php.net> Subject: Re: [PHP-DEV] PDO questions From: kingwez@gmail.com (Wez Furlong) On Thu, 24 Feb 2005 11:47:24 +0100, Ard Biesheuvel wrote: > Some questions that came to mind while working on PDO/Firebird: > > - why can't stmt_get_col() return a zval directly? > - why is there no PDO_PARAM_DOUBLE? Because PDO doesn't believe in doubles. The decimal data coming back from most databases is precise decimal data; converting it to double instantly loses precision. The idea of get_col() is that you pass back the native C-style type, and leave it to PDO to manage the creation of a zval, where appropriate. The simplifies the common cases in developing database drivers. --Wez.