diff --git a/core/lib/Drupal/Core/Database/Connection.php b/core/lib/Drupal/Core/Database/Connection.php
index e0c1714..cb8dca8 100644
--- a/core/lib/Drupal/Core/Database/Connection.php
+++ b/core/lib/Drupal/Core/Database/Connection.php
@@ -318,6 +318,21 @@ public function tablePrefix($table = 'default') {
   }
 
   /**
+   * Get a fully qualified table name.
+   *
+   * @param string $table
+   *   The name of the table in question.
+   *
+   * @return string
+   */
+  public function getFullQualifiedTableName($table) {
+    // @see https://www.drupal.org/node/2388067
+    $options = $this->getConnectionOptions();
+    $prefix = $this->tablePrefix($table);
+    return $options['database'] . '.' . $prefix . $table;
+  }
+
+  /**
    * Prepares a query string and returns the prepared statement.
    *
    * This method caches prepared statements, reusing them when
@@ -911,7 +926,7 @@ public function rollback($savepoint_name = 'drupal_transaction') {
     // in question has already been accidentally committed.
     if (!isset($this->transactionLayers[$savepoint_name])) {
       throw new TransactionNoActiveException();
-     }
+    }
 
     // We need to find the point we're rolling back to, all other savepoints
     // before are no longer needed. If we rolled back other active savepoints,
diff --git a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
index 59e075c..06a026a 100644
--- a/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
+++ b/core/modules/migrate/src/Plugin/migrate/id_map/Sql.php
@@ -207,10 +207,7 @@ public function messageTableName() {
    *   The fully qualified map table name.
    */
   public function getQualifiedMapTableName() {
-    $database = $this->getDatabase();
-    $options = $database->getConnectionOptions();
-    $prefix = $database->tablePrefix($this->mapTableName);
-    return $options['database'] . '.' . $prefix . $this->mapTableName;
+    return $this->getDatabase()->getFullQualifiedTableName($this->mapTableName);
   }
 
   /**
