mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-28 16:40:28 +02:00
* Merging revisions r43585 from trunk:
------------------------------------------------------------------------ r43585 | michael | 2019-11-25 15:24:38 +0100 (Mon, 25 Nov 2019) | 1 line * Better explanation of connection ------------------------------------------------------------------------ git-svn-id: branches/fixes_3_2@43725 -
This commit is contained in:
parent
04ede12878
commit
3dae852e85
@ -106,6 +106,7 @@ begin
|
||||
// Create with empty connection config.
|
||||
C:=FDisp.Connections.AddConnection('','','','','');
|
||||
C.name:='connection';
|
||||
// Read connection settings if available
|
||||
FN:=GetOptionValue('c', 'config');
|
||||
if FN='' then
|
||||
FN:='connection.ini';
|
||||
@ -113,12 +114,12 @@ begin
|
||||
C.LoadFromIniFile(FN,'database',[])
|
||||
else
|
||||
begin
|
||||
// Try Default
|
||||
// Or set in code.
|
||||
C.ConnectionType:=TPQConnectionDef.TypeName;
|
||||
C.DatabaseName:='fpctest';
|
||||
C.HostName:='localhost';
|
||||
C.UserName:='fpc';
|
||||
C.Password:='Shimrod';
|
||||
C.UserName:='user';
|
||||
C.Password:='secret';
|
||||
end;
|
||||
Result:=C;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user