[Geoserver-devel] [JIRA] (GEOS-9507) Geoserver wrapes column and table names in quotes while sending SQL queries

Feofilakt created an issue

GeoServer / BugGEOS-9507

Geoserver wrapes column and table names in quotes while sending SQL queries

Issue Type:

BugBug

Affects Versions:

2.15.0

Assignee:

Unassigned

Created:

19/Feb/20 10:39 AM

Priority:

MediumMedium

Reporter:

Feofilakt

Geoserver wrapes column and table names in quotes when sending SQL queries. It is unexpected behavior because DBMS may treated this situation in a special way.

For example, WFS-T transaction:

	<wfs:Insert>
		<feature:LOG xmlns:feature="http://www.opengeospatial.net/blabla">
			<feature:user_name>name1</feature:user_name>
			...
		</feature:LOG>
	</wfs:Insert>

and part of generated SQL query:
INSERT INTO "blabla"."blabla" ( "user_name", ...) VALUES ( $1, ...)

must be:
INSERT INTO blabla.blabla ( user_name, ...) VALUES ( $1, ...)

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100121-sha1:96a3924)

Atlassian logo