summaryrefslogtreecommitdiffstats
path: root/lib/MDB2
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2012-08-27 13:33:24 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2012-08-27 13:33:24 +0200
commit15cdde74d3ee291db1f8b2977dbf0dd498337b74 (patch)
tree1c8f349a8f1b17d0112492084c781e91a4ed3a83 /lib/MDB2
parent59cf1d19e593efd9d376c3426a6214c438ca7b3d (diff)
downloadnextcloud-server-15cdde74d3ee291db1f8b2977dbf0dd498337b74.tar.gz
nextcloud-server-15cdde74d3ee291db1f8b2977dbf0dd498337b74.zip
return standard SQL values (sqlite3 understands CURRENT_...)
Diffstat (limited to 'lib/MDB2')
-rw-r--r--lib/MDB2/Driver/Function/sqlite3.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/MDB2/Driver/Function/sqlite3.php b/lib/MDB2/Driver/Function/sqlite3.php
index 1af262fd7a7..790bd0e747b 100644
--- a/lib/MDB2/Driver/Function/sqlite3.php
+++ b/lib/MDB2/Driver/Function/sqlite3.php
@@ -55,12 +55,12 @@ class MDB2_Driver_Function_sqlite3 extends MDB2_Driver_Function_Common
{
switch ($type) {
case 'time':
- return 'time(\'now\')';
+ return 'CURRENT_TIME';
case 'date':
- return 'date(\'now\')';
+ return 'CURRENT_DATE';
case 'timestamp':
default:
- return 'datetime(\'now\')';
+ return 'CURRENT_TIMESTAMP';
}
}