Re: PDO questions

From: Date: Thu, 24 Feb 2005 15:20:53 +0000
Subject: Re: PDO questions
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-15182@lists.php.net to get a copy of this message
On Thu, 24 Feb 2005 11:47:24 +0100, Ard Biesheuvel <abies@php.net> 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.

« previous php.internals (#15182) next »