[Lazarus] Port with TPQConnection

Pavel Řezníček cigydd at gmail.com
Thu Sep 11 20:29:21 CEST 2008


Thank you, Michael, this was pretty obvious :-)
Excuse me for the newbie question.
Further posting only in case of problems.

Pavel


Michael Van Canneyt napsal(a):
> On Thu, 11 Sep 2008, Pavel Řezníček wrote:
>
>   
>> I thought there is some more dynamic way. Still, thank you very much for 
>> your hint :-)
>>
>> Maybe I'll add a Port property to TPQConnection. I don't have the latest 
>> version (and don't plan to download one for a while) so I miss the files 
>> you specified. Or do these come from an external package?
>>     
>
> Try adding 
>
> Port=PortNumber
>
> to the params property.
>
> Michael.
>
>   
>> Pavel
>>
>> Juan Cortés Cuesta napsal(a):
>>     
>>> Use  TPSQLDatabase  and  TPSQLDataset components
>>>
>>> Edit psqldatabase.pas changing:
>>> const
>>>   PSQLPort = 5432;
>>>
>>> recompile..... and try again
>>>
>>> Good Luck
>>>
>>> Warmest Regards
>>> Juan
>>>
>>>
>>> Pavel Řezníček escribió:
>>>   
>>>       
>>>> Dear Lazarus developers and users,
>>>>
>>>> is there anyone who would know if and how do I connect to a non-default 
>>>> port (other than 5432) with the TPQConnection component?
>>>>
>>>> Thanks a lot.
>>>>
>>>> Pavel Řezníček




More information about the Lazarus mailing list