Return value if table doesn't exist - Mailing list pgsql-general

From Paul M Foster
Subject Return value if table doesn't exist
Date
Msg-id 20020401211824.A24228@quillandmouse.com
Whole thread Raw
List pgsql-general
In the C++ interface, if one sends a query to the backend (via
ExecTuplesOk()) about a table, how do you tell if the table doesn't
exist? It appears that ExecTuplesOk() simply returns PGRES_EMPTY_QUERY,
and ConnectionBad() returns false. The only way I can see to tell if the
table doesn't exist is by checking ErrorMessage(). That seems pretty
goofy. This is pgsql 7.1.3.

Any ideas?

Paul

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: %ROWTYPE as PL/pgsql argument
Next
From: Richard Emberson
Date:
Subject: Re: %ROWTYPE as PL/pgsql argument