Re: Parse error help needed...

From: "Thapliyal, Deepak" <dthapliyal(at)soe(dot)sony(dot)com>
To: 'Doug McNaught' <doug(at)mcnaught(dot)org>
Cc: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Parse error help needed...
Date: 2004-01-13 00:48:38
Message-ID: 1FE5193EE2768D478949FC0AFBFFC43B06EBDE07@mail-sd1.station.sony.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thx to doug ... Old error is gone .. But I am now getting new error

postgres=# \i a.sql
psql:a.sql:10: ERROR: language "plpgsql" does not exist

But I verified that I setup plpgsql

[postgres(at)node1]~$ createlang -d test -l
Procedural languages
Name | Trusted?
---------+----------
plpgsql | t
(1 row)

Can u pls advice if u know whats going on.. Am I missing somin obvious here.
..

Thx in advance
Deep

-----Original Message-----
From: Doug McNaught,,, [mailto:doug(at)wireboard(dot)com] On Behalf Of Doug
McNaught
Sent: Monday, January 12, 2004 4:44 PM
To: Thapliyal, Deepak
Cc: 'pgsql-general(at)postgresql(dot)org'
Subject: Re: [GENERAL] Parse error help needed...

"Thapliyal, Deepak" <dthapliyal(at)soe(dot)sony(dot)com> writes:

> I am getting this error
>
> postgres=# \i a.sql
> psql:a.sql:10: ERROR: parser: parse error at or near "return" at
> character 26

> create function loadme() return text as '
^^^^^^

I think you want "returns" here.

-Doug

Browse pgsql-general by date

  From Date Subject
Next Message Alex Satrapa 2004-01-13 00:56:54 Re: Parse error help needed...
Previous Message Chris Ochs 2004-01-13 00:44:51 Re: sql insert function