Skip to content
Snippets Groups Projects
Commit 77378fa1 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix now() function for sqlite3

parent 330c5130
No related branches found
No related tags found
No related merge requests found
......@@ -350,7 +350,7 @@ class OC_DB {
$prefix = OC_Config::getValue( "dbtableprefix", "oc_" );
// differences in escaping of table names ('`' for mysql) and getting the current timestamp
if( $type == 'sqlite' ){
if( $type == 'sqlite' || $type == 'sqlite3' ){
$query = str_replace( '`', '\'', $query );
$query = str_replace( 'NOW()', 'datetime(\'now\')', $query );
$query = str_replace( 'now()', 'datetime(\'now\')', $query );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment