From 2bc6adbc91f9f74517df0c9d93f7d935da20ddef Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Tue, 28 Apr 2015 22:53:10 -0400 Subject: [PATCH] When comparing sequences, be a little looser about missing fields as sequences have changed over the years. --- Bucardo.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Bucardo.pm b/Bucardo.pm index e0b25f221..dee671245 100644 --- a/Bucardo.pm +++ b/Bucardo.pm @@ -8809,11 +8809,14 @@ sub adjust_sequence { ## Skip things not set by ALTER SEQUENCE next if ! $syntax; + ## Older versions may not have all the fields! + next if ! exists $sourceinfo->{$name} or ! exists $targetinfo->{$name}; + ## Skip if these items are the exact same - next if exists $targetinfo->{last_value} and $sourceinfo->{$name} eq $targetinfo->{$name}; + next if $sourceinfo->{$name} eq $targetinfo->{$name}; ## Fullcopy will not have this, and we won't report it - if (exists $targetinfo->{last_value}) { + if (exists $targetinfo->{$name}) { $self->glog("Sequence $S.$T has a different $name value: was $targetinfo->{$name}, now $sourceinfo->{$name}", LOG_VERBOSE); } -- 2.39.5