mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 10:49:07 +02:00
* Password check for sqlite3 functionality, Mantis #18774
git-svn-id: trunk@20535 -
This commit is contained in:
parent
2d8dbeca54
commit
56442144bf
@ -719,6 +719,8 @@ begin
|
||||
InitializeSqlite(SQLiteLibraryName);
|
||||
str1:= databasename;
|
||||
checkerror(sqlite3_open(pchar(str1),@fhandle));
|
||||
if (Length(Password)>0) and assigned(sqlite3_key) then
|
||||
checkerror(sqlite3_key(fhandle,PChar(Password),StrLen(PChar(Password))));
|
||||
if Params.IndexOfName('foreign_keys') <> -1 then
|
||||
execsql('PRAGMA foreign_keys = '+Params.Values['foreign_keys']);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user