mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-21 11:29:24 +02:00
Up to now TSQLite3Connection used the variable SQLiteLibraryName to control the name of the SQLite library to use. The sqlite3dyn unit also contains a variable to control the library to use: SQLiteDefaultLibrary. To avoid potential confusion the variable from sqlite3dyn will be used from now on.
packages/fcl-db/src/sqldb/sqlite3/sqlite3conn.pp: * Declare SQLiteLibraryName as an absolute alias for SQLiteDefaultLibrary and deprecate it with an approbiate hint * TSQLite3Connection.DoInternalConnect & GetConnectionInfo: use SQLiteDefaultLibrary instead of SQLiteLibraryName git-svn-id: trunk@23708 -
This commit is contained in:
parent
da7b24e242
commit
c7f1569156
@ -115,7 +115,7 @@ type
|
||||
end;
|
||||
|
||||
Var
|
||||
SQLiteLibraryName : String = sqlite3lib;
|
||||
SQLiteLibraryName : String absolute sqlite3dyn.SQLiteDefaultLibrary deprecated 'use sqlite3dyn.SQLiteDefaultLibrary instead';
|
||||
|
||||
implementation
|
||||
|
||||
@ -732,7 +732,7 @@ var
|
||||
begin
|
||||
if Length(databasename)=0 then
|
||||
DatabaseError(SErrNoDatabaseName,self);
|
||||
InitializeSqlite(SQLiteLibraryName);
|
||||
InitializeSqlite(SQLiteDefaultLibrary);
|
||||
str1:= databasename;
|
||||
checkerror(sqlite3_open(pchar(str1),@fhandle));
|
||||
if (Length(Password)>0) and assigned(sqlite3_key) then
|
||||
@ -933,7 +933,7 @@ function TSQLite3Connection.GetConnectionInfo(InfoType: TConnInfoType): string;
|
||||
begin
|
||||
Result:='';
|
||||
try
|
||||
InitializeSqlite(SQLiteLibraryName);
|
||||
InitializeSqlite(SQLiteDefaultLibrary);
|
||||
case InfoType of
|
||||
citServerType:
|
||||
Result:=TSQLite3ConnectionDef.TypeName;
|
||||
|
Loading…
Reference in New Issue
Block a user