Opened 17 years ago
Closed 15 years ago
#2026 closed defect (fixed)
ogr2ogr PG:driver cannot read schema "public" qualified layers
Reported by: | hdus | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.7.0 |
Component: | default | Version: | 1.4.0 |
Severity: | normal | Keywords: | |
Cc: | pka |
Description
ogr2ogr and ogrinfo do not find layers in public schema when table name is given with "public".<table>.
Change History (2)
comment:1 by , 17 years ago
comment:2 by , 15 years ago
Milestone: | → 1.7.0 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
r17908 /trunk/gdal/apps/ogrinfo.cpp: Preserve order of source layers specified on ogrinfo command line, and use GetLayerByName() which enables to read some hidden layers like public.<table> layers from a PG database (#2922, #2026)
Note:
See TracTickets
for help on using tickets.
For backwards compatibility, the internal layer name is not qualified with the schema name, if it is the current_schema(). This seems to be a problem with the current version of QGIS and maybe GRASS.
OGRPGTableLayer::ReadTableDefinition:
ogrinfo.cpp:
I can't see a clean backwards compatible solution for this, right now. Mateusz?