We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f26160 commit dbaeaf3Copy full SHA for dbaeaf3
Libraries/DatabaseLib/dwsSynSQLiteDatabase.pas
@@ -294,7 +294,7 @@ constructor TdwsSynSQLiteDataBase.Create(const parameters : array of String; con
294
FFileSystem := fileSystem;
295
if Length(parameters) > 0 then begin
296
dbName := TdwsDataBase.ApplyPathVariables(parameters[0]);
297
- if Assigned(fileSystem) then begin
+ if (dbName <> ':memory:') and Assigned(fileSystem) then begin
298
validatedDBName := fileSystem.ValidateFileName(dbName);
299
if validatedDBName = '' then
300
raise ESQLite3Exception.CreateFmt('Database location not allowed "%s"', [ dbName ])
0 commit comments