dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
(bug 20275) Fixed LIKE queries on SQLite backend
[lhc/web/wiklou.git]
/
includes
/
db
/
DatabaseSqlite.php
diff --git
a/includes/db/DatabaseSqlite.php
b/includes/db/DatabaseSqlite.php
index
720c3a1
..
138e9ca
100644
(file)
--- a/
includes/db/DatabaseSqlite.php
+++ b/
includes/db/DatabaseSqlite.php
@@
-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?
*/