Re: [PDO] Mapping data type/size
[email protected] (Matteo Beccati) Mon, 02 Nov 2009 10:32:14 +0100
| Newsgroups | php.pdo |
|---|---|
| Message-ID | <[email protected]> |
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.