[Dbix-class] Getting numeric columns as numeric values

Peter Rabbitson rabbit+dbic at rabbit.us
Fri Feb 27 09:19:04 GMT 2015


On 02/27/2015 10:10 AM, Martin J. Evans wrote:
>
> When I came across this problem (not using DBIC) we started adding 0 to
> every numeric column when it was fetched but that became a pain. Then,
> with Tim's help I added
>
> http://search.cpan.org/~timb/DBI-1.633/DBI.pm#sql_type_cast
>
> http://search.cpan.org/~timb/DBI-1.633/DBI.pm#bind_col
> StrictlyTyped and DiscardString

Hi Martin,

Even though I've seen them when scrolling through changelogs, I've 
completely forgotten about these options, thanks for reminding me!

I'll investigate in the future if this can be better incorporated into 
how DBIC does things. Thanks!




More information about the DBIx-Class mailing list