Opened 13 years ago

Closed 13 years ago

#1730 closed defect (fixed)

layerid in GetTopoGeomElementArray

Reported by: chrizke Owned by: chrizke
Priority: medium Milestone: PostGIS 2.0.0
Component: topology Version: master
Keywords: Cc:

Description

Using topology.GetTopoGeomElementArray throws the following exception:

ERROR:  Column »layerid« doesn't exist
LINE 3:     || quote_literal(layerid) || ','
                             ^
QUERY:  SELECT 'SELECT * FROM topology.GetTopoGeomElements('
    || quote_literal(toponame) || ','
    || quote_literal(layerid) || ','
    || quote_literal(tgid)
    || ') as obj ORDER BY obj'
CONTEXT:  PL/pgSQL function "gettopogeomelementarray" line 9 at ...

I think it should be:

quote_literal(layer_id) 

Change History (3)

comment:1 by strk, 13 years ago

What version of PostgreSQL ?

comment:2 by chrizke, 13 years ago

PostgreSQL version is 9.1

comment:3 by strk, 13 years ago

Resolution: fixed
Status: newclosed

Thanks, fixed in r9568

Note: See TracTickets for help on using tickets.