-
Notifications
You must be signed in to change notification settings - Fork 773
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
postgres driver query bug ? #55
Comments
Hi When you look at the documentation of PostGres then table names are identifiers also in older versions: http://www.postgresql.org/docs/8.2/static/sql-syntax-lexical.html This can be quoted with double-quotes but NOT with single quotes. Can someone please confirm this ? Thanks. |
Remo, I guess the issue is that different back ends have different syntax. So somehow we need to account for that. Any suggestions? |
Glenn, but please look at the lexical - docs. It says that single quotes are not correct. |
Not correct for Postgres. But they are correct for OGR SQL, and possibly other OGR drivers. When the back-end driver supports SQL, OGR passes the SQL string along to the driver. But different drivers supports different flavors of SQL. I'm saying we need a way to account for that. |
Ok, thanks. I need to read some docs and code ;) |
Remo, try doing a pull and see if it works for you now. I made a change to only quote the table name if contains spaces and I'm also checking to see if the driver is PostgreSQL, and if it is using double quotes instead of single quotes as the delimiter. |
@jasonbeverage , thanks, it works now. |
I have troubles with postgres driver from osgEarth
Part of my log:
It has to do with the following
This quoting is not needed. When i remove this it works. But i using PG 9.1.
i use the following parameters for configure the driver:
Thanks
Remo
The text was updated successfully, but these errors were encountered: