diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-02-25 13:14:20 +0100 |
---|---|---|
committer | Morris Jobke <hey@morrisjobke.de> | 2016-04-25 16:18:59 +0200 |
commit | dbfdc6282af2c00deece8196684b7c67a1064bb4 (patch) | |
tree | 3dacb071aa5f882d43222b49091bd60d879cf668 /lib/private/DB | |
parent | 632159613447796b5bb7dbe3a17c194573b18b4a (diff) | |
download | nextcloud-server-dbfdc6282af2c00deece8196684b7c67a1064bb4.tar.gz nextcloud-server-dbfdc6282af2c00deece8196684b7c67a1064bb4.zip |
do propagation in a single query
Diffstat (limited to 'lib/private/DB')
-rw-r--r-- | lib/private/DB/AdapterSqlite.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/DB/AdapterSqlite.php b/lib/private/DB/AdapterSqlite.php index d7769238abc..3466e0e1aac 100644 --- a/lib/private/DB/AdapterSqlite.php +++ b/lib/private/DB/AdapterSqlite.php @@ -32,6 +32,7 @@ class AdapterSqlite extends Adapter { $statement = preg_replace('/`(\w+)` ILIKE \?/', 'LOWER($1) LIKE LOWER(?)', $statement); $statement = str_replace( '`', '"', $statement ); $statement = str_ireplace( 'NOW()', 'datetime(\'now\')', $statement ); + $statement = str_ireplace('GREATEST(', 'MAX(', $statement); $statement = str_ireplace( 'UNIX_TIMESTAMP()', 'strftime(\'%s\',\'now\')', $statement ); return $statement; } |