Salutari,

Am shi eu o problema cu o funtzie.

create function test(text)
RETURNS text
AS 'BEGIN
select * from domenii where nume = $1;
end;
'
LANGUAGE 'plpgsql';

mesajul de eroare afisat de psql este
select test('gigi');
ERROR:  unexpected SELECT query in exec_stmt_execsql()

mesajul de eroare afisat de server este 
010328.05:03:34.895  [9931] DEBUG:  Last error occured while executing
PL/pgSQL function test
010328.05:03:34.895  [9931] DEBUG:  line 2 at SQL statement

Are cineva o idee unde am greshit?

Diana

---
Send e-mail to '[EMAIL PROTECTED]' with 'unsubscribe rlug' to 
unsubscribe from this list.

Raspunde prin e-mail lui