Skip site navigation (1) Skip section navigation (2)

pg_select in a tcl script

From: Steve Burger <steve(at)customware(dot)aust(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: pg_select in a tcl script
Date: 2002-03-01 04:03:24
Message-ID: 3C7EFD8C.E8536C52@customware.aust.com (view raw or flat)
Thread:
Lists: pgsql-interfaces
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.

Thanks in advance for and help or ideas

Steve



Responses

pgsql-interfaces by date

Next:From: Bruce MomjianDate: 2002-03-01 04:04:52
Subject: Re: Beating Oracle
Previous:From: Bruce BadgerDate: 2002-03-01 04:01:29
Subject: Re: Beating Oracle

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group