Re: plpgsql code doen't work - Mailing list pgsql-general

From Giuseppe Broccolo
Subject Re: plpgsql code doen't work
Date
Msg-id 522EF670.9090902@2ndquadrant.it
Whole thread Raw
In response to Re: plpgsql code doen't work  (Beena Emerson <memissemerson@gmail.com>)
List pgsql-general
Il 10/09/2013 10:46, Beena Emerson ha scritto:
> Hello,
>
> Try changing the variable left to something other like left_val. It
> will work.
> Maybe the problem is because LEFT is a keyword.
Yes, left() is a function returning a 'text'. There's a conflict when
you define it as an 'integer'...

Giuseppe.

--
Giuseppe Broccolo - 2ndQuadrant Italy
PostgreSQL Training, Services and Support
giuseppe.broccolo@2ndQuadrant.it | www.2ndQuadrant.it



pgsql-general by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: FW: Single Line Query Logging
Next
From: Oliver Kohll - Mailing Lists
Date:
Subject: Re: Making substrings uppercase