gwaldron/osgearth — Issue #55: postgres driver query bug ?
Author: remoe
Created: 2012-01-11 14:29:16+00:00
State: open

I have troubles with

Part of my log:

PG: PostgreSQL version string : 'PostgreSQL 9.1.2 on x86_64-unknown-linux-gnu, compiled by gcc (GCC) 4.4.5 20110214 (Red Hat 4.4.5-6), 64-bit'

PG: PQexec(DECLARE executeSQLCursor CURSOR for SELECT * FROM 'b_basis_seen_ch1903_1') = PGRES_FATAL_ERROR
PG: PQexec(FETCH 0 in executeSQLCursor) = PGRES_FATAL_ERROR

It has to do with the following
```c++
FeatureCursorOGR::FeatureCursorOGR(OGRDataSourceH dsHandle,
OGRLayerH layerHandle,
const FeatureProfile* profile,
const Symbology::Query& query,
const FeatureFilterList& filters )
...
from = std::string("'") + from + std::string("'"); // this is not needed

...
```
This quoting is not needed. When i remove this it works. What you think.

Thanks
Remo