Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-novice by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group