Re: [PDO] PDO docs and spec problem
[email protected] (Lukas Kahwe Smith) Mon, 2 Nov 2009 15:53:08 +0100
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <[email protected]> |
On 02.11.2009, at 15:34, Oskar Eisemuth wrote: > Anyway, I tried to start to document the current binding internals > at the brainstorm wiki page (by simply checking the statement source > files) So far each driver likes to do it's own way and common > answers need to be find: > > What if a parameter is null? > If it's an empty string, can it be null for non character fields? > Should PDO enforce types at bind and then let the driver decide? ok thx for that! well php null should just be converted to an unquoted sql NULL in general explicit types should overwrite PDO defaults (see lob issue) furthermore i agree that in the absence of an explicit type PDO should default to the php type. so an integer is bound as an integer, a string as a string, and a stream ressource as a lob. obviously a numeric string would still be bound as a string. obviously we need to worry about BC eventually, but i think for now we should focus on finding out how we want PDO the behave and later on we can think about how/if to handle BC regards, Lukas Kahwe Smith [email protected]