Explorar el Código

implemented use of HostName

joost hace 20 años
padre
commit
79753bc429
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  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));