On Thu, 24 Feb 2005 11:47:24 +0100, Ard Biesheuvel <[EMAIL PROTECTED]> 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.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to