Re: pg_select in a tcl script

From: ljb <lbayuk(at)mindspring(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: pg_select in a tcl script
Date: 2002-03-02 02:08:48
Message-ID: a5pc7g$be7$1@jupiter.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

steve(at)customware(dot)aust(dot)com wrote:
> Hi
>
> The documentation for pg_select says that "the return result is either
> an error message or a handle for a query result".
>
> How can I catch this output? and How do I determine if it is an error or
> a handle?
>
> I have tried
>
> set res [pg_select ...]
> pg_result res -status
> complains that res is not a result handle, it seems to be a null value.

No result handle is returned. pg_select creates, uses, and then destroys
the result structure before it returns. Where in the documentation did
you see the above quote?

In response to

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message jtv 2002-03-02 11:22:18 Re: Beating Oracle
Previous Message Jan Wieck 2002-03-01 20:24:13 Re: Beating Oracle