FAQ
According to the DBI dox, this:

@names = map { scalar $dbh->type_info($_)->{TYPE_NAME} }
@{ $sth->{TYPE} }

should return the datatype of each column of a SELECT statement. All I
ever get is undefs. Does this not work right under DBD::Pg?

--
Jeff Boes vox 616.226.9550 ext 24
Database Engineer fax 616.349.9076
Nexcerpt, Inc. http://www.nexcerpt.com
...Nexcerpt... Extend your Expertise

Search Discussions

  • Thomas A. Lowery at Apr 19, 2002 at 1:03 pm
    Try the latest version (1.12).
    Tom
    On Thu, Apr 18, 2002 at 03:49:39PM -0400, Jeff Boes wrote:
    According to the DBI dox, this:

    @names = map { scalar $dbh->type_info($_)->{TYPE_NAME} }
    @{ $sth->{TYPE} }

    should return the datatype of each column of a SELECT statement. All I
    ever get is undefs. Does this not work right under DBD::Pg?
    --
    Thomas A. Lowery
    See DBI/FAQ http://xmlproj.dyndns.org/cgi-bin/fom

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdbi-users @
categoriesperl
postedApr 18, '02 at 7:45p
activeApr 19, '02 at 1:03p
posts2
users2
websitedbi.perl.org

2 users in discussion

Thomas A. Lowery: 1 post Jeff Boes: 1 post

People

Translate

site design / logo © 2022 Grokbase