mirror of
https://github.com/nextcloud/server.git
synced 2024-08-05 08:15:54 +02:00
return standard SQL values (sqlite3 understands CURRENT_...)
This commit is contained in:
parent
59cf1d19e5
commit
15cdde74d3
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user