Browse Source

implemented use of HostName

joost 20 years ago
parent
commit
79753bc429
1 changed files with 1 additions and 0 deletions
  1. 1 0
      fcl/db/sqldb/postgres/pqconnection.pp

+ 1 - 0
fcl/db/sqldb/postgres/pqconnection.pp

@@ -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));