Qiang Tan writes:
>
>
> > Could somebody tell me how to get the fields' type through DBI:DBD of Perl?
> > I tried one, but it does not work as stated in doc:
> >
> > $types = $sth->{types};
> >
> > suppose it will return a reference to an array of field types associated
> > with the statement handle.
> >
> > Thank you.
>
Hi!
Just fix:
$types = $sth->{types};
to
$types = $sth->{type};
Regards,
- Jani
--
+---------------------------------------------------------------------+
| TcX ____ __ _____ _____ ___ == mysql@stripped |
| /*/\*\/\*\ /*/ \*\ /*/ \*\ |*| Jani Tolonen |
| /*/ /*/ /*/ \*\_ |*| |*||*| mailto: jani@stripped |
| /*/ /*/ /*/\*\/*/ \*\|*| |*||*| Helsinki |
| /*/ /*/ /*/\*\_/*/ \*\_/*/ |*|_____ Finland |
| ^^^^^^^^^^^^/*/^^^^^^^^^^^\*\^^^^^^^^^^^ |
| /*/ \*\ Developers Team |
+---------------------------------------------------------------------+