Re: PGPLSql Select Into problem.
| От | Michael Fuhr |
|---|---|
| Тема | Re: PGPLSql Select Into problem. |
| Дата | |
| Msg-id | 20070609122719.GA31003@winnie.fuhr.org обсуждение |
| Ответ на | Re: PGPLSql Select Into problem. ("A. Kretschmer" <andreas.kretschmer@schollglas.com>) |
| Ответы |
Re: PGPLSql Select Into problem.
Re: PGPLSql Select Into problem. |
| Список | pgsql-novice |
On Sat, Jun 09, 2007 at 10:48:49AM +0200, A. Kretschmer wrote:
> am Fri, dem 08.06.2007, um 9:46:14 -0700 mailte Gary Townsend folgendes:
> > GeomFromText(
> > ''POINT('' || stopeasting || '' '' stopnorthing || '')'',
> > projection
>
> If you want to call dynamicaly created sql-statements you need to use
> EXECUTE.
> http://www.postgresql.org/docs/current/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-EXECUTING-DYN
This isn't a dynamic SQL statement. POINT isn't a function; it's
part of the text representation of a geometry object that PostGIS
uses. The error here is a missing || operator before stopnorthing.
The string concatenation could also be replaced with a call to
makepoint().
--
Michael Fuhr
В списке pgsql-novice по дате отправления: