summaryrefslogtreecommitdiffstats
path: root/lib/private/DB/AdapterSqlite.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-01-26 12:15:26 +0100
committerRobin Appelman <robin@icewind.nl>2017-03-30 11:14:59 +0200
commit3355fd549f71328afb11f6c07c936219eeaa6059 (patch)
treea408efd7c62958a8faaf01278543e08aaf22df57 /lib/private/DB/AdapterSqlite.php
parent07449a4885c3d97cd8891cbf524d9bda8d518deb (diff)
downloadnextcloud-server-3355fd549f71328afb11f6c07c936219eeaa6059.tar.gz
nextcloud-server-3355fd549f71328afb11f6c07c936219eeaa6059.zip
dont double escape
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/DB/AdapterSqlite.php')
-rw-r--r--lib/private/DB/AdapterSqlite.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/private/DB/AdapterSqlite.php b/lib/private/DB/AdapterSqlite.php
index 7a69cb7e8c2..5507699c54a 100644
--- a/lib/private/DB/AdapterSqlite.php
+++ b/lib/private/DB/AdapterSqlite.php
@@ -41,7 +41,6 @@ class AdapterSqlite extends Adapter {
}
public function fixupStatement($statement) {
- $statement = preg_replace('( I?LIKE \?)', '$0 ESCAPE \'\\\'', $statement);
$statement = preg_replace('/`(\w+)` ILIKE \?/', 'LOWER($1) LIKE LOWER(?)', $statement);
$statement = str_replace( '`', '"', $statement );
$statement = str_ireplace( 'NOW()', 'datetime(\'now\')', $statement );