pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
return codes
2+ messages / 2 participants
[nested] [flat]

* return codes
@ 2001-03-05 19:02 jr@i-bucks.com
  2001-03-06 08:40 ` Re: return codes Michael Meskes <meskes@postgresql.org>
  0 siblings, 1 reply; 2+ messages in thread

From: jr@i-bucks.com @ 2001-03-05 19:02 UTC (permalink / raw)
  To: pgsql-interfaces


How does one check return codes with an embedded sql program?  (I dont seem
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
examples of using postgres than the docs and Bruce's book.

thanks,

jr




^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: return codes
  2001-03-05 19:02 return codes jr@i-bucks.com
@ 2001-03-06 08:40 ` Michael Meskes <meskes@postgresql.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Meskes @ 2001-03-06 08:40 UTC (permalink / raw)
  To: jr@i-bucks.com; +Cc: pgsql-interfaces

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!



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2001-03-06 08:40 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-03-05 19:02 return codes jr@i-bucks.com
2001-03-06 08:40 ` Michael Meskes <meskes@postgresql.org>

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