|
From: Chris W. <ch...@cw...> - 2003-01-03 05:11:10
|
Ray Zimmerman wrote:
> ... maybe I missed it, but I didn't see a way to get back the old hash
> that my code was using. In any case, I can change my code to use the new
> TypeInfo object instead of the hash ... it's not a big problem.
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 ;-)
Chris
--
Chris Winters (ch...@cw...)
Building enterprise-capable snack solutions since 1988.
|