pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: jr@i-bucks.com
Cc: pgsql-interfaces@postgresql.org
Subject: Re: return codes
Date: Tue, 6 Mar 2001 09:40:28 +0100
Message-ID: <20010306094028.A24036@feivel.credativ.de> (raw)
In-Reply-To: <3.0.6.32.20010305110241.007f2e50@mail.i-bucks.com>
References: <3.0.6.32.20010305110241.007f2e50@mail.i-bucks.com>

On Mon, Mar 05, 2001 at 11:02:41AM -0800, jr@i-bucks.com wrote:
> How does one check return codes with an embedded sql program?  (I dont seem

sqlca

> to find any info on this, in any of the documentation that I have seen).
> In other databases, I have checked the values of sqlca.sqlcode or similar
> fields.  While I see that this field exists, I dont know if postgres is
> similar in this request, and I dont know if there is a better source of

It is. There is also the exec sql whenever statement available.

> examples of using postgres than the docs and Bruce's book.

Unfortunately no.

Michael
-- 
Michael Meskes
Michael@Fam-Meskes.De
Go SF 49ers! Go Rhein Fire!
Use Debian GNU/Linux! Use PostgreSQL!



view thread (2+ messages)

Message-ID: <20010306094028.A24036@feivel.credativ.de>
Permalink:  ../20010306094028.A24036@feivel.credativ.de/
Also on:    postgresql.org/message-id/20010306094028.A24036@feivel.credativ.de

 · 

reply

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: meskes@postgresql.org, jr@i-bucks.com
  Subject: Re: return codes
  In-Reply-To: <20010306094028.A24036@feivel.credativ.de>

* 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