Re: plpgsql code doen't work

From: Giuseppe Broccolo <giuseppe(dot)broccolo(at)2ndquadrant(dot)it>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: plpgsql code doen't work
Date: 2013-09-10 10:37:36
Message-ID: 522EF670.9090902@2ndquadrant.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(dot)broccolo(at)2ndQuadrant(dot)it | www.2ndQuadrant.it

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Kohll - Mailing Lists 2013-09-10 10:51:15 Re: Making substrings uppercase
Previous Message Albe Laurenz 2013-09-10 09:28:09 Re: FW: Single Line Query Logging