(bug 20275) Fixed LIKE queries on SQLite backend
[lhc/web/wiklou.git] / includes / db / DatabaseSqlite.php
index 720c3a1..138e9ca 100644 (file)
@@ -418,6 +418,14 @@ class DatabaseSqlite extends DatabaseBase {
                return $s;
        }
 
+       function buildLike() {
+               $params = func_get_args();
+               if ( count( $params ) > 0 && is_array( $params[0] ) ) {
+                       $params = $params[0];
+               }
+               return parent::buildLike( $params ) . "ESCAPE '\' ";
+       }
+
        /**
         * How lagged is this slave?
         */