pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Define function with no return value?
2+ messages / 2 participants
[nested] [flat]

* Define function with no return value?
@ 2003-08-29 21:22 Haron, Charles <Charles.Haron@Cognitive.com>
  2003-08-29 21:25 ` Re: Define function with no return value? Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Haron, Charles @ 2003-08-29 21:22 UTC (permalink / raw)
  To: pgsql-admin

Is it posible to define a function with no return value?

I've something like "CREATE FUNCTION set_to_active(int4) RETURNS NULL AS
..." but I get an parse error at or near "NULL"

Thanks,
Chuck



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

* Re: Define function with no return value?
  2003-08-29 21:22 Define function with no return value? Haron, Charles <Charles.Haron@Cognitive.com>
@ 2003-08-29 21:25 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-08-29 21:25 UTC (permalink / raw)
  To: Haron, Charles <Charles.Haron@Cognitive.com>; +Cc: pgsql-admin

"Haron, Charles" <Charles.Haron@Cognitive.com> writes:
> Is it posible to define a function with no return value?

In recent versions you can say RETURNS VOID.

			regards, tom lane



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


end of thread, other threads:[~2003-08-29 21:25 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-08-29 21:22 Define function with no return value? Haron, Charles <Charles.Haron@Cognitive.com>
2003-08-29 21:25 ` 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