org.gvsig.gdal.prov.ogr-doblequotes.patch

Francisco Puga, 11/02/2016 10:12 PM

Download (2.67 KB)

View differences:

.classpath (revision 0)
1
<?xml version="1.0" encoding="UTF-8"?>
2
<classpath>
3
	<classpathentry kind="src" output="target/classes" path="src/main/java">
4
		<attributes>
5
			<attribute name="optional" value="true"/>
6
			<attribute name="maven.pomderived" value="true"/>
7
		</attributes>
8
	</classpathentry>
9
	<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
10
		<attributes>
11
			<attribute name="maven.pomderived" value="true"/>
12
		</attributes>
13
	</classpathentry>
14
	<classpathentry kind="src" output="target/test-classes" path="src/test/java">
15
		<attributes>
16
			<attribute name="optional" value="true"/>
17
			<attribute name="maven.pomderived" value="true"/>
18
		</attributes>
19
	</classpathentry>
20
	<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
21
		<attributes>
22
			<attribute name="maven.pomderived" value="true"/>
23
		</attributes>
24
	</classpathentry>
25
	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
26
		<attributes>
27
			<attribute name="maven.pomderived" value="true"/>
28
		</attributes>
29
	</classpathentry>
30
	<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
31
		<attributes>
32
			<attribute name="maven.pomderived" value="true"/>
33
		</attributes>
34
	</classpathentry>
35
	<classpathentry kind="output" path="target/classes"/>
36
</classpath>
src/main/java/org/gvsig/gdal/prov/ogr/OGRDataStoreProvider.java (working copy)
537 540
        query.append("SELECT ");
538 541
        FeatureAttributeDescriptor[] attributeDescriptors = type.getAttributeDescriptors();
539 542
        for (int i = 0; i < attributeDescriptors.length; i++) {
543
        	query.append("\"");
540 544
            query.append(attributeDescriptors[i].getName());
545
            query.append("\"");
541 546
            // Don't add the last comma
542 547
            if (i < attributeDescriptors.length - 1) {
543 548
                query.append(",");
......
545 550
        }
546 551

  
547 552
        query.append(" FROM ");
548
        query.append("'");
553
        query.append("\"");
549 554
        query.append(getOGRParameters().getLayerName());
550
        query.append("'");
555
        query.append("\"");
551 556

  
552 557
        if (featureQueryOrder != null && featureQueryOrder.iterator().hasNext()) {
553 558
            query.append(" ORDER BY ");