mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-05 03:11:09 +02:00
* fixed bug #4837, as suggested by submitter Tomasz Łobejko
git-svn-id: trunk@2937 -
This commit is contained in:
parent
f491452803
commit
ce902aedee
@ -273,6 +273,7 @@ begin
|
||||
if (Password <> '') then FConnectString := FConnectString + ' password=''' + Password + '''';
|
||||
if (HostName <> '') then FConnectString := FConnectString + ' host=''' + HostName + '''';
|
||||
if (DatabaseName <> '') then FConnectString := FConnectString + ' dbname=''' + DatabaseName + '''';
|
||||
if (Params.Text <> '') then FConnectString := FConnectString + ' '+Params.Text;
|
||||
|
||||
FSQLDatabaseHandle := PQconnectdb(pchar(FConnectString));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user