Re: [PDO] Mapping data type/size
| From: | Matteo Beccati | Date: | Mon, 02 Nov 2009 09:32:14 +0000 |
| Subject: | Re: [PDO] Mapping data type/size | ||
| References: | 1 2 3 4 5 6 | Groups: | php.pdo |
| Request: | Send a blank email to pdo+get-263@lists.php.net to get a copy of this message | ||
Lester Caine ha scritto:
> Lester Caine wrote:
>> Matteo Beccati wrote:
>>> Hi,
>>>
>>>> anyways .. i think making it possible to choose between a string and a
>>>> stream seems to be a sensible feature to add.
>>>
>>> It is currently possible, although it's a "global" switch, see
>>> PDO_STRINGIFY_FETCHES.
>>
>> Where is that documented? I'm not seeing anything about it on php.net
>
> OK found http://uk3.php.net/manual/en/pdo.setattribute.php -
> but why
> doesn't php.net search find that text?
Maybe because I mispelled it. It's PDO::ATTR_STRINGIFY_FETCHES.
> This only says convert numeric values - not blobs?
I agree that documentation of the various attributes and fetch modes can
be improved. If you are serious about improving PDO, I'd suggest you to
take a look at the test suites, both common and driver specific: there
might be much to learn by looking at them (talking about the main
drivers, not the broken firebird one).
Cheers
--
M.