Re: Invalid syntax for integer

From: David Jarvis <thangalin(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Invalid syntax for integer
Date: 2010-07-02 02:00:52
Message-ID: AANLkTikqQRx94ydGVqqIQjDXfaS-W9On5eA5HUpTe_IH@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Hi,

The work-around is as follows:

IF array_length( v_id, 1 ) = 1 THEN
SELECT array_append( v_id, NULL ) INTO v_id;
END IF;

result := climate.plr_stations( v_id, v_latitude, v_longitude, latitude,
longitude );

This now works when *v_id* contains a single element.

Dave

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Lennart Ripke 2010-07-02 06:11:10 How to use search_path in CASE
Previous Message David Jarvis 2010-07-02 00:53:05 Re: Invalid syntax for integer