From 5b25ebc0f386d9c01687a325ea98d67d5dbc6c20 Mon Sep 17 00:00:00 2001
From: James Allen <jallen@ebi.ac.uk>
Date: Tue, 3 May 2016 15:11:23 +0100
Subject: [PATCH] Retain the backslash on escaped single quotes when generating
 a hash from a flattened string.

---
 modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm b/modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm
index 2640874188..74c938e82a 100755
--- a/modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm
+++ b/modules/Bio/EnsEMBL/DBSQL/BaseAdaptor.pm
@@ -1109,7 +1109,7 @@ sub get_dumped_data {
     my $self = shift;
     my $data = shift;
 
-    $data =~ s/\n|\r|\f|\\//g;
+    $data =~ s/\n|\r|\f|(\\\\)//g;
     return eval ($data); ## no critic
 }
 
-- 
GitLab