Change sqlite escaping of identifier to double quote. Fixing some issues
This commit is contained in:
parent
919681f3e6
commit
5b7c69f978
1 changed files with 1 additions and 1 deletions
|
@ -444,7 +444,7 @@ class OC_DB {
|
|||
|
||||
// differences in escaping of table names ('`' for mysql) and getting the current timestamp
|
||||
if( $type == 'sqlite' || $type == 'sqlite3' ){
|
||||
$query = str_replace( '`', '\'', $query );
|
||||
$query = str_replace( '`', '"', $query );
|
||||
$query = str_replace( 'NOW()', 'datetime(\'now\')', $query );
|
||||
$query = str_replace( 'now()', 'datetime(\'now\')', $query );
|
||||
}elseif( $type == 'mysql' ){
|
||||
|
|
Loading…
Reference in a new issue