Skip to content

Commit f9448a4

Browse files
H.Merijn Brand - Tuxrehsack
authored andcommitted
Two nits noted by mje
1 parent 9a51469 commit f9448a4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/DBD/File.pm

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ sub FETCH
322322
# fill overall_defs unless we know
323323
unless (exists $sth->{f_overall_defs} && ref $sth->{f_overall_defs}) {
324324
my $types = $sth->{Database}{Types};
325-
unless ($types) { # Feth types only once per database
325+
unless ($types) { # Fetch types only once per database
326326
if (my $t = $sth->{Database}->type_info_all ()) {
327327
foreach my $i (1 .. $#$t) {
328328
$types->{uc $t->[$i][0]} = $t->[$i][1];
@@ -342,7 +342,8 @@ sub FETCH
342342
}
343343
my $all_meta =
344344
$sth->{Database}->func ("*", "table_defs", "get_sql_engine_meta");
345-
while (my ($tbl, $meta) = each %$all_meta) {
345+
foreach my $tbl (keys %$all_meta) {
346+
my $meta = $all_meta->{$tbl};
346347
exists $meta->{table_defs} && ref $meta->{table_defs} or next;
347348
foreach (keys %{$meta->{table_defs}{columns}}) {
348349
my $field_info = $meta->{table_defs}{columns}{$_};

0 commit comments

Comments
 (0)