File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -322,7 +322,7 @@ sub FETCH
322
322
# fill overall_defs unless we know
323
323
unless (exists $sth -> {f_overall_defs } && ref $sth -> {f_overall_defs }) {
324
324
my $types = $sth -> {Database }{Types };
325
- unless ($types ) { # Feth types only once per database
325
+ unless ($types ) { # Fetch types only once per database
326
326
if (my $t = $sth -> {Database }-> type_info_all ()) {
327
327
foreach my $i (1 .. $# $t ) {
328
328
$types -> {uc $t -> [$i ][0]} = $t -> [$i ][1];
@@ -342,7 +342,8 @@ sub FETCH
342
342
}
343
343
my $all_meta =
344
344
$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 };
346
347
exists $meta -> {table_defs } && ref $meta -> {table_defs } or next ;
347
348
foreach (keys %{$meta -> {table_defs }{columns }}) {
348
349
my $field_info = $meta -> {table_defs }{columns }{$_ };
You can’t perform that action at this time.
0 commit comments