From 7cb842584f5ee1cf79d8e3869832bf5ab0b15236 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Tue, 7 Oct 2014 17:29:30 +0100
Subject: [PATCH] Issue #2349789 by markus_g: Fixed Responsive Image Mappings
 are not listed with sqlite.

---
 core/lib/Drupal/Core/Config/DatabaseStorage.php | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/core/lib/Drupal/Core/Config/DatabaseStorage.php b/core/lib/Drupal/Core/Config/DatabaseStorage.php
index 20e5f1b9bef0..471590ad64f1 100644
--- a/core/lib/Drupal/Core/Config/DatabaseStorage.php
+++ b/core/lib/Drupal/Core/Config/DatabaseStorage.php
@@ -269,10 +269,11 @@ public function decode($raw) {
    */
   public function listAll($prefix = '') {
     try {
-      return $this->connection->query('SELECT name FROM {' . $this->connection->escapeTable($this->table) . '} WHERE collection = :collection AND name LIKE :name', array(
-        ':collection' => $this->collection,
-        ':name' => $this->connection->escapeLike($prefix) . '%',
-      ), $this->options)->fetchCol();
+      $query = $this->connection->select($this->table);
+      $query->fields($this->table, array('name'));
+      $query->condition('collection', $this->collection, '=');
+      $query->condition('name', $prefix . '%', 'LIKE');
+      return $query->execute()->fetchCol();
     }
     catch (\Exception $e) {
       return array();
-- 
GitLab