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

Mailing lists / lazarus / 2008-09
5 messages · 3 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
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
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?:
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?
Pavel
Juan Cort?s Cuesta napsal(a):
Try adding
Port=PortNumber
to the params property.
Michael.
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):