Re: using sql on v7.4 server to feed stored procedure

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Brian Jarrett" <digimotif(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: using sql on v7.4 server to feed stored procedure
Date: 2007-03-30 20:14:48
Message-ID: 23120.1175285688@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Brian Jarrett" <digimotif(at)gmail(dot)com> writes:
> The following statement works on 8.x servers, but not on 7.4 and I
> can't figure out how to get it to operate in the earlier version:

> select calc_cum_gpa_mp(marking_period_id::TEXT)
> from (select distinct marking_period_id from student_mp_stats) as
> sms1;

> I get the error:

> ERROR: syntax error at or near "("
> SQL state: 42601
> Context: compile of PL/pgSQL function "calc_cum_gpa_mp" near line 8

> Can anyone point me in the right direction?

You need to look into the referenced plpgsql function; this statement in
itself is not at fault.

regards, tom lane

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Karthikeyan Sundaram 2007-03-30 21:16:37 function return array
Previous Message Brian Jarrett 2007-03-30 19:19:34 using sql on v7.4 server to feed stored procedure