Adapt ImportReplicationChanges to current DBD::Pg
Ulrich Klauer
Branch: chirlu/musicbrainz-server:mbs-8126
Branch: metabrainz/musicbrainz-server:beta
Merged
Merged pull request
Merge remote-tracking branch 'chirlu/mbs-8126' into beta
Merge remote-tracking branch 'chirlu/mbs-8126' into beta
This is mostly the same as pull request #1425, just for
replication/ImportReplicationChanges
instead ofMBImport.pl
(Igrep
ped this time to make sure there aren’t even more problematic uses ofCOPY
). UnlikeMBImport.pl
, this script also used outdated methods for sending data, which still work but are “heavily deprecated” according to the documentation, so I updated those, too.I couldn’t really test this. @mayhemchaos has confirmed that swapping the lines fixed the issue for him, though, and
MBImport.pl
has been using the new API for years, so I’m confident it will work. :)