List:General Discussion« Previous MessageNext Message »
From:Jani Tolonen Date:May 10 1999 11:17am
Subject:Re:MySQL Perl DBD can not get fields' type
View as plain text  
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   |
+---------------------------------------------------------------------+
Thread
Re:MySQL Perl DBD can not get fields' typeQiang Tan4 May
  • Re:MySQL Perl DBD can not get fields' typeJani Tolonen11 May
    • Re:MySQL Perl DBD can not get fields' typeJay Flaherty11 May