Re: [PHP-DEV] Re: [RFC] deprecate PDO::PARAM_NULL

2017-05-18 Thread Lester Caine
On 18/05/17 10:43, Marco Pivetta wrote: > On Thu, May 18, 2017 at 11:38 AM, Lester Caine wrote: > >> On 18/05/17 09:15, Dorin Marcoci wrote: >>> Yes, null is a state, not a type. ->bindValue('Foo', PDO::PARAM_NULL) is >>> awesome. >>> So it should be deprecated and removed. >> ? One of the reason

Re: [PHP-DEV] Re: [RFC] deprecate PDO::PARAM_NULL

2017-05-18 Thread Marco Pivetta
On Thu, May 18, 2017 at 11:38 AM, Lester Caine wrote: > On 18/05/17 09:15, Dorin Marcoci wrote: > > Yes, null is a state, not a type. ->bindValue('Foo', PDO::PARAM_NULL) is > > awesome. > > So it should be deprecated and removed. > > ? One of the reasons for using 'prepare' is to set up a query w

Re: [PHP-DEV] Re: [RFC] deprecate PDO::PARAM_NULL

2017-05-18 Thread Lester Caine
On 18/05/17 09:15, Dorin Marcoci wrote: > Yes, null is a state, not a type. ->bindValue('Foo', PDO::PARAM_NULL) is > awesome. > So it should be deprecated and removed. ? One of the reasons for using 'prepare' is to set up a query which can be run several times and some of those passes may require

[PHP-DEV] Re: [RFC] deprecate PDO::PARAM_NULL

2017-05-18 Thread Dorin Marcoci
> I would agree that NULL is not a type and the constant shouldn't have > been there in the first place, but I think it could be a bit too late now. Raising an warning for first 1-2 years with later removal sounds OK. Also docs should be updated to mark this constant deprecated. Yes, null is a st