Re: [PDO] PDO docs and spec problem

From: Date: Mon, 02 Nov 2009 14:53:08 +0000
Subject: Re: [PDO] PDO docs and spec problem
References: 1 2 3 4 5 6  Groups: php.pdo 
Request: Send a blank email to pdo+get-271@lists.php.net to get a copy of this message
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 mls@pooteeweet.org

« previous php.pdo (#271) next »