pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
PQhost
3+ messages / 2 participants
[nested] [flat]

* PQhost
@ 2003-05-14 16:58  Stéphane Pinel <spinel@noos.fr>
  0 siblings, 1 reply; 3+ messages in thread

From: Stéphane Pinel @ 2003-05-14 16:58 UTC (permalink / raw)
  To: pgsql-interfaces

I have this code :

--------------------------------------------------------
...
char *theHost
...
...
theHost = PQhost(conn);
....

after the PQhost call, "theHost" is unusable, whatever I try, I get a  
crash.

I haven't encountered this issue with PQpass, PQuser, PQdb which work  
like
a charm.

Any idea ?

Thanks !

------------------------------------------------------------------------ 
---
Stéphane Pinel
iChat/AIM: s.pinel
------------------------------------------------------------------------ 
---



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: PQhost
@ 2003-05-14 17:20  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Stéphane Pinel <spinel@noos.fr>
  0 siblings, 1 reply; 3+ messages in thread

From: Tom Lane @ 2003-05-14 17:20 UTC (permalink / raw)
  To: Stéphane Pinel <spinel@noos.fr>; +Cc: pgsql-interfaces

=?ISO-8859-1?Q?St=E9phane_Pinel?= <spinel@noos.fr> writes:
> theHost = PQhost(conn);

> after the PQhost call, "theHost" is unusable, whatever I try, I get a  
> crash.

It looks to me like PQhost returns NULL if you are dealing with a local
connection.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: PQhost
@ 2003-05-14 17:29  Stéphane Pinel <spinel@noos.fr>
  parent: Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 3+ messages in thread

From: Stéphane Pinel @ 2003-05-14 17:29 UTC (permalink / raw)
  To: Tom Lane <tgl@sss.pgh.pa.us>; +Cc: pgsql-interfaces


Le mercredi, 14 mai 2003, à 19:20 Europe/Paris, Tom Lane a écrit :

> It looks to me like PQhost returns NULL if you are dealing with a local
> connection.
>

Oh yes that's it !

Thanks a lot...

Regards.

------------------------------------------------------------------------ 
---
Stéphane Pinel
iChat/AIM: s.pinel
------------------------------------------------------------------------ 
---




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2003-05-14 17:29 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-05-14 16:58 PQhost Stéphane Pinel <spinel@noos.fr>
2003-05-14 17:20 ` Tom Lane <tgl@sss.pgh.pa.us>
2003-05-14 17:29   ` Stéphane Pinel <spinel@noos.fr>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox