Re: PDO Parameter types // PDO::PARAM_AUTO
| From: | dorin.marcoci@marcodor.com | Date: | Thu, 18 May 2017 10:50:27 +0000 |
| Subject: | Re: PDO Parameter types // PDO::PARAM_AUTO | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-99105@lists.php.net to get a copy of this message | ||
Sent from Meizu MX6
-------- Original message --------
Sender: Matteo Beccati <php@beccati.com>
Time: Thu 5/18 13:18
To: Dorin Marcoci <dorin.marcoci@marcodor.com>,internals <internals@lists.php.net>
Subject: Re: [PHP-DEV] PDO Parameter types // PDO::PARAM_AUTO
>> I meant the case when a bool is passed as string, like bindValue('boolparam',
>> false);
>> Here it comes as an empty string, not "0", while true comes as "1".
>
>Please have a look again at my example and the code I linked. How could
>it work if what you say is true?
>
>
>
>
>Matteo,
>
>
>There is the case when param is set explicitelly with PDO::PARAM_BOOL
>
>