From 4e7bf429b98a50dc3a6fd99a04db6f35cb64a354 Mon Sep 17 00:00:00 2001 From: Leo Gordon <lg4@ebi.ac.uk> Date: Fri, 23 May 2014 11:57:38 +0100 Subject: [PATCH] cosmetic: removed a redefinition of variables and put warnings in --- modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm b/modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm index 1c6cb6c7c..74d87b9e5 100644 --- a/modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm +++ b/modules/Bio/EnsEMBL/Hive/DBSQL/BaseAdaptor.pm @@ -36,6 +36,7 @@ package Bio::EnsEMBL::Hive::DBSQL::BaseAdaptor; use strict; +use warnings; no strict 'refs'; # needed to allow AUTOLOAD create new methods use DBI 1.6; # the 1.6 functionality is important for detecting autoincrement fields and other magic. @@ -488,7 +489,6 @@ sub store { my $stored_this_time = 0; foreach my $object (@$objects) { - my ($columns_being_stored, $column_key) = (ref($object) eq 'HASH') ? $self->keys_to_columns($object) : ($all_storable_columns, '*all*'); my ($columns_being_stored, $column_key) = $self->keys_to_columns($object); # warn "COLUMN_KEY='$column_key'\n"; -- GitLab