From: Tom Lane <tgl@sss.pgh.pa.us>
To: Stéphane Pinel <spinel@noos.fr>
Cc: pgsql-interfaces@postgresql.org
Subject: Re: PQhost
Date: Wed, 14 May 2003 13:20:08 -0400
Message-ID: <25449.1052932808@sss.pgh.pa.us> (raw)
In-Reply-To: <3F7797DD-862D-11D7-BED7-000A27AFF5D2@noos.fr>
References: <3F7797DD-862D-11D7-BED7-000A27AFF5D2@noos.fr>
=?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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: tgl@sss.pgh.pa.us, spinel@noos.fr
Subject: Re: PQhost
In-Reply-To: <25449.1052932808@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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