Radu-Adrian Popescu wrote:
I didn't find it in documentation, but sql functions are like bash (you forgot about space character):Take the following for example: create or replace function testfunc1(int) returns setof test as ' select * from test where age>$1; ' ^^^^^^ language sql;
create or replace function testfunc1(int) returns setof test as
'
select * from test where age > $1;
'
works fine.
Postgresql thinks that >$ is an operator instead of >
Tomasz Myrta
---------------------------(end of broadcast)---------------------------
TIP 1: subscribe and unsubscribe commands go to [EMAIL PROTECTED]