Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-09

Port with TPQConnection

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Pavel Řezníček

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

Reply by email

Juan Cortés Cuesta
to 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?:

Show quoted text 11 lines
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 _______________________________________________

Reply by email

Pavel Řezníček
to Juan Cortés Cuesta

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):

Show quoted text 34 lines
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 > _______________________________________________ > > > _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Michael Van Canneyt
to Pavel Řezníček
Pavel ?ezn??ek wrote 6 lines
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.

Show quoted text 44 lines
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 >> _______________________________________________ >> >> >> > > _______________________________________________ > Lazarus mailing list > > http://www.lazarus.freepascal.org/mailman/listinfo/lazarus > _______________________________________________ Lazarus mailing list http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply by email

Pavel Řezníček
to Michael Van Canneyt

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):

Show quoted text 49 lines
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

Reply by email