Hi,
I am having some trouble reading from a PostGIS database. There are schemas and tables with names that are in a mix of cases. PostgreSQL is case sensitive and I can't find a way to pass the table name through from PostgreSqlFeatureLayer to the database and retain the case.
I have a schema called "Fosar_NWE" and a table called "Pipelines"
For the schema name I can do something like:
pg.SchemaName = """Fosar_NWE"""
but this doesn't work for the table name..
Dim pg As PostgreSqlFeatureLayer = New PostgreSqlFeatureLayer()
pg.GeometryColumnName = "the_geom"
pg.ConnectionString = cstring
pg.FeatureIdColumn = "gid"
pg.SchemaName = """Fosar_NWE"""
pg.TableName = "Pipelines"
pg.Name = "Fosar_NWE.Pipelines"
I have tried:
pg.TableName = """Pipelines"""
this throws an exception in NpgsqlException : ERROR: 42601: zero-length delimited identifier at or near """"
and I tried:
pg.Tablename = "'Pipelines'"
which throws ERROR: 42P01: relation "Fosar_NWE.'pipelines'" does not exist
Any help greatly appreciated!
Jeremy