Hi Adam, On Sat, Feb 21, 2015 at 2:22 AM, Adam Baratz <adam.bar...@gmail.com> wrote:
> This driver returns all column data as a string, regardless of how it's > represented in the DB. I created a patch for my own use that syncs up the > type handling with the behavior of the MSSQL extension. This seems like it > would be of general use. Does anyone have any feedback before I put > together an RFC? My main question would be whether people would rather have > this be the default/only behavior, or whether it should be opted into > via PDO::ATTR_STRINGIFY_FETCHES. > Databases return "string" data to return correct data in DB. Most obvious is "NUMERIC" data type. NUMERIC has any precision. We may have 128 bit INT in near future also. So it should return string by default, PHP may convert types into PHP native types optionally. Not the other way around. IMHO. Regards, -- Yasuo Ohgaki yohg...@ohgaki.net