[Dbix-class] numeric field returned with quotes
Adam Witney
awitney at sgul.ac.uk
Fri Apr 17 15:44:36 GMT 2015
Hi,
I have a numeric type field:
"gestation", { data_type => "numeric", is_nullable => 1 },
but when I call the accessor I get a quoted number:
use Data::Dumper;
die Dumper($self->gestation);
$VAR1 = '31';
This causes problem as when it gets turned into json, I get this
{ "gestation": "31"}
But then the javascript front end complains when it tries to load it in an input[number] field
Am I doing something wrong, or misunderstanding something?
Thanks
Adam
More information about the DBIx-Class
mailing list