Re: [PDO] Fixing bug #44639 for mysql

[email protected] (Matteo Beccati) Wed, 28 Oct 2009 11:29:12 +0100
Newsgroups php.pdo
Message-ID <[email protected]>
Hi,

> as for the execute() approach, here it should ideally at least for
> variables of type integer/float implicitly use PDO::PARAM_INT/FLOAT. if
> this isnt the case today, then it might be too big of a BC break to do
> it now.

This was also discussed for a particular PDO_PGSQL problem with
$stmt->execute(array(false)) failing[1] because Postgres doesn't cast
the empty string to boolean false, and I gather that the desired
behaviour is to always ignore the php type. A documentation bug report
is also availabe[2]. Still I think it should be something we can address
in PDO2.


[1] http://bugs.php.net/bug.php?id=44597
[2] http://bugs.php.net/bug.php?id=49614


Cheers
-- 
Matteo Beccati