|
From: Ray Z. <rz...@co...> - 2003-01-03 12:28:41
|
At 12:24 AM -0500 1/3/03, Chris Winters wrote:
>Just a follow-up: I added an 'as_hash()' method to the
>SPOPS::DBI::TypeInfo class, so you can do:
>
> my %type_map = $type_info->as_hash;
> foreach my $field ( keys %type_map ) {
> print "Field $field is type $type_map{ $field }\n";
> }
>
>You may still run into the case-sensitivity problem from before
>(fields are in whatever case specified or as they were retrieved
>from the database), but that's your problem now that there's an
>alternative ;-)
Ah ... case-sensitivity stuff ... now I remember vaguely why you're
doing this ... I'm too young for my memory to be going already :-)
--
Ray Zimmerman / e-mail: rz...@co... / 428-B Phillips Hall
Sr Research / phone: (607) 255-9645 / Cornell University
Associate / FAX: (815) 377-3932 / Ithaca, NY 14853
|