create function syntax error

From: gustavo halperin <ggh(dot)develop(at)gmail(dot)com>
To: pgsql-general(at)postgresql(dot)org
Subject: create function syntax error
Date: 2006-07-29 20:27:47
Message-ID: 44CBC4C3.2090202@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hello

I Always get "syntax error" for every function that I try to create, for
example:
mydb'>create or replace function f_sum () returns void as '
mydb'> select 2+2;
mydb'> ' LANGUAGE plpgsql;
ERROR: syntax error at or near "select" at character 56
LINE 2: select 2+2;
^

What its the problem ??
Thank you,
Gustavo

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Andreas Kretschmer 2006-07-29 20:38:15 Re: Auto Installation
Previous Message Habib Seifzadeh 2006-07-29 20:25:50 Re: Auto Installation