Problem with an SQL function - Mailing list pgsql-general

From chris.gamble@CPBINC.com
Subject Problem with an SQL function
Date
Msg-id 00CA54A79070D411A9E20090273CEF1C14F335@inet1.cpbinc.com
Whole thread Raw
Responses Re: Problem with an SQL function  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
List pgsql-general
Is it possible to define the following in language='SQL' ?

select (69.1 * $1 - $2) as x, (53 * $3 - $4) as y;
select sqrt(x * x + y * y) as distance;

I was trying to create this but keep getting the error that x does not
exist...

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: I must be blind...
Next
From: Alvaro Herrera
Date:
Subject: Re: I must be blind...