Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CarnetApp/CarnetNextcloud.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhie <phie@phie.ovh>2019-04-17 16:38:15 +0300
committerPhie <phie@phie.ovh>2019-04-17 16:38:15 +0300
commit372fa85dd33e4ee4daf4286f0379e33354904029 (patch)
treee29a8fed310aacc25b1e7891b4bc29f983920c81 /lib/Misc/CacheManager.php
parent8d34b338749d10d040780ad21b96c27bb6b5bd3f (diff)
fix search with sqlite
Diffstat (limited to 'lib/Misc/CacheManager.php')
-rw-r--r--lib/Misc/CacheManager.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Misc/CacheManager.php b/lib/Misc/CacheManager.php
index e3535f8..d18caa9 100644
--- a/lib/Misc/CacheManager.php
+++ b/lib/Misc/CacheManager.php
@@ -129,7 +129,7 @@ class CacheManager{
public function search($query){
$arrayFullPath = array();
$sql = 'SELECT * FROM `*PREFIX*carnet_metadata` ' .
- 'WHERE path LIKE ? AND CONVERT(metadata USING utf8) LIKE _utf8 ? COLLATE utf8_general_ci';
+ 'WHERE path LIKE ? AND metadata LIKE ? ';
$args = array();
array_push($args, $this->carnetFolder->getPath()."/%");