Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
67b1ec1f
Commit
67b1ec1f
authored
Sep 17, 2014
by
Robin Appelman
Browse files
Implement ILIKE for sqlite
parent
60587e9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/private/db/adaptersqlite.php
View file @
67b1ec1f
...
...
@@ -11,7 +11,7 @@ namespace OC\DB;
class
AdapterSqlite
extends
Adapter
{
public
function
fixupStatement
(
$statement
)
{
$statement
=
str
_replace
(
' ILIKE '
,
'
LIKE
'
,
$statement
);
$statement
=
preg
_replace
(
'
/`(\w+)`
ILIKE
\?/
'
,
'
LOWER($1) LIKE LOWER(?)
'
,
$statement
);
$statement
=
str_replace
(
'`'
,
'"'
,
$statement
);
$statement
=
str_ireplace
(
'NOW()'
,
'datetime(\'now\')'
,
$statement
);
$statement
=
str_ireplace
(
'UNIX_TIMESTAMP()'
,
'strftime(\'%s\',\'now\')'
,
$statement
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment