Skip to content
Snippets Groups Projects
Commit 9450c4dc authored by Daniel Sobral's avatar Daniel Sobral
Browse files

corrected small bug... but I'm not sure if the logic is correct...

parent 64d05aee
No related branches found
No related tags found
No related merge requests found
......@@ -234,9 +234,11 @@ sub mapping_status{
#the table is empty, first mapping
my $previous_dbname = &get_previous_dbname($old_dbh,$dbname,$release);
if ($previous_dbname) {
print $previous_dbname."\n";
my $old_sth_max_mapping = $old_dbh->prepare("select max(mapping_set_id) from $previous_dbname.mapping_set");
$old_sth_max_mapping->execute();
( $$mapping_set_id_ref ) = $sth_max_mapping->fetchrow_array();
( $$mapping_set_id_ref ) = $old_sth_max_mapping->fetchrow_array();
if ($$mapping_set_id_ref) {
print (" There are mappings in the previous version of the database, need to do something with them ?\n");
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment