Skip to content

Commit

Permalink
Disable double quoted sql string compatibility mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-1000 committed May 29, 2024
1 parent 5528441 commit 2ecfde4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Duplicati/Library/SQLiteHelper/SQLiteLoader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,12 @@ private static void OpenSQLiteFile(System.Data.IDbConnection con, string path)

con.ConnectionString = "Data Source=" + path;
con.Open();
if (con is System.Data.SQLite.SQLiteConnection sqlitecon)
{
sqlitecon.SetConfigurationOption(System.Data.SQLite.SQLiteConfigDbOpsEnum.SQLITE_DBCONFIG_DQS_DDL, false);
sqlitecon.SetConfigurationOption(System.Data.SQLite.SQLiteConfigDbOpsEnum.SQLITE_DBCONFIG_DQS_DML, false);
}


// If we are non-Windows, make the file only accessible by the current user
if (!Platform.IsClientWindows && !fileExists)
Expand Down

0 comments on commit 2ecfde4

Please sign in to comment.