pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Setting sqlstate in plpgsql function
2+ messages / 2 participants
[nested] [flat]

* Setting sqlstate in plpgsql function
@ 2007-04-06 17:26 Chris Hoover <revoohc@gmail.com>
  2007-04-06 17:45 ` Re: Setting sqlstate in plpgsql function Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Chris Hoover @ 2007-04-06 17:26 UTC (permalink / raw)
  To: pgsql-admin

Is where anyway to set the sqlstate to a custom value when inside a plpgsql
function?  I am still working on converting from Sybase ASA to Postgres and
some of the triggers and stored procedures in Sybase are setting the
variable to specific custom values.

Thanks,

Chris

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

* Re: Setting sqlstate in plpgsql function
  2007-04-06 17:26 Setting sqlstate in plpgsql function Chris Hoover <revoohc@gmail.com>
@ 2007-04-06 17:45 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2007-04-06 17:45 UTC (permalink / raw)
  To: Chris Hoover <revoohc@gmail.com>; +Cc: pgsql-admin

"Chris Hoover" <revoohc@gmail.com> writes:
> Is where anyway to set the sqlstate to a custom value when inside a plpgsql
> function?

Nope :-(.  There's been some discussion of extending plpgsql's RAISE
command to allow specification of a SQLSTATE, but nothing's been done.

			regards, tom lane



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


end of thread, other threads:[~2007-04-06 17:45 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-04-06 17:26 Setting sqlstate in plpgsql function Chris Hoover <revoohc@gmail.com>
2007-04-06 17:45 ` Tom Lane <tgl@sss.pgh.pa.us>

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