Ver Fonte

implemented use of HostName

joost há 20 anos atrás
pai
commit
79753bc429
1 ficheiros alterados com 1 adições e 0 exclusões
  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));