[postgis-tickets] [PostGIS] #3701: Escape double quotes issue in pgsql2shp
PostGIS
trac at osgeo.org
Thu Feb 2 07:23:27 PST 2017
#3701: Escape double quotes issue in pgsql2shp
---------------------+--------------------------------
Reporter: kalxas | Owner: pramsey
Type: defect | Status: new
Priority: medium | Milestone: PostGIS PostgreSQL
Component: postgis | Version: 2.2.x
Keywords: |
---------------------+--------------------------------
On behalf of Sergej Dugokontov:
Error executing main scan query: ERROR: zero-length delimited identifier
at or near """"
LINE 1: DECLARE cur CURSOR FOR SELECT ""quoteColumn",ST_AsEWKB(ST_Se...
If I change sql to:
{{{
SELECT
c1 AS "geom",
c2 AS """""quoteColumn"
FROM t1
}}}
I got different error:
{{{
Error executing main scan query: ERROR: column ""quoteColumn" does not
exist
LINE 1: DECLARE cur CURSOR FOR SELECT """quoteColumn",ST_AsEWKB(ST_S...
^
HINT: Perhaps you meant to reference the column
"__pgsql2shp22020_tmp_table.""quoteColumn".
}}}
I use `pgsql2shp RELEASE: 2.2.1 (r14555)` on Ubuntu 16.04 LTS and don't
have any issues if column alias in sql doesn't contain double quotes.
--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3701>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list