Quantcast

SQL Statament is parsed wrong

classic Classic list List threaded Threaded
2 messages Options
andreahmed andreahmed
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

SQL Statament is parsed wrong

Hi All,

I'm trying to print all the features using a feature cursor but I get a SQL Expression parsing error

 OE_DEBUG << LC << "SQL: " << expr << std::endl;
        _resultSetHandle = OGR_DS_ExecuteSQL( _dsHandle, expr.c_str(), _spatialFilter, 0L );

the expr is expr = "SELECT * FROM tows:poi_ais"

In the database the table name is poi_ais. The layer is tows. Is that a bug ?
gwaldron gwaldron
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: SQL Statament is parsed wrong

What is your data source?
How did you configure it?
What is the error?

Please provide complete information when asking a question. Thanks.
Glenn Waldron / Pelican Mapping / @glennwaldron
Loading...