Re: calling a stored procedure using sql query in 7.4

From: Alban Hertroys <alban(at)magproductions(dot)nl>
To: BaseTwo <digimotif(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: calling a stored procedure using sql query in 7.4
Date: 2007-04-02 14:21:08
Message-ID: 46111154.5090603@magproductions.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

BaseTwo wrote:
> 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

Apparently the syntax used in your PL/pgSQL function is incompatible
with postgres 7.4. You probably used $$ markers or somesuch, which is
new in PG 8.

It definitely has nothing to do with how you call the function.

--
Alban Hertroys
alban(at)magproductions(dot)nl

magproductions b.v.

T: ++31(0)534346874
F: ++31(0)534346876
M:
I: www.magproductions.nl
A: Postbus 416
7500 AK Enschede

// Integrate Your World //

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Jaime Silvela 2007-04-02 14:21:30 Re: time series query
Previous Message William Garrison 2007-04-02 13:50:34 Re: time series query