mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-11 20:29:14 +02:00
implemented use of HostName
This commit is contained in:
parent
4e1b076d8f
commit
79753bc429
@ -262,6 +262,7 @@ begin
|
||||
FConnectString := '';
|
||||
if (UserName <> '') then FConnectString := FConnectString + ' user=''' + UserName + '''';
|
||||
if (Password <> '') then FConnectString := FConnectString + ' password=''' + Password + '''';
|
||||
if (HostName <> '') then FConnectString := FConnectString + ' host=''' + HostName + '''';
|
||||
if (DatabaseName <> '') then FConnectString := FConnectString + ' dbname=''' + DatabaseName + '''';
|
||||
|
||||
FSQLDatabaseHandle := PQconnectdb(pchar(FConnectString));
|
||||
|
Loading…
Reference in New Issue
Block a user