MapServer / MapServer-import

3 stars 2 forks source link

bug in mappostgis.c not trimming using... before going to postgresql #1544

Open tbonfort opened 12 years ago

tbonfort commented 12 years ago

Reporter: akrherz@iastate.edu Date: 2005/11/28 - 05:44

can not get postgis layers to work with beta2.  This line looks suspicious in
mappostgis.c

line 1840
pos_opt = (pos_srid > pos_urid) ? pos_srid : pos_urid;

I think it is backwards,  It should be

pos_opt = (pos_srid > pos_urid) ? pos_urid : pos_srid;

I applied this change locally and postgis worked again... I should back up.  The
problem is that postgis doesn't trim the first 'using ...' from the SQL before
sending to PostgreSQL.
tbonfort commented 12 years ago

Author: akrherz@iastate.edu Date: 2005/11/28 - 05:48


*** This bug has been marked as a duplicate of 1443 ***