We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 417d497 commit 3701561Copy full SHA for 3701561
src/providers/postgres/qgspostgresprovider.cpp
@@ -2565,10 +2565,9 @@ bool QgsPostgresProvider::getGeometryDetails()
2565
}
2566
2567
2568
- QString detectedType;
2569
- QString detectedSrid;
2570
-
2571
- if ( !schemaName.isEmpty() )
+ QString detectedType = mRequestedGeomType == QGis::WKBUnknown ? "" : QgsPostgresConn::postgisWkbTypeName( mRequestedGeomType );
+ QString detectedSrid = mRequestedSrid;
+ if ( !schemaName.isEmpty() && (detectedType.isEmpty() || detectedSrid.isEmpty() ) )
2572
{
2573
// check geometry columns
2574
sql = QString( "SELECT upper(type),srid FROM geometry_columns WHERE f_table_name=%1 AND f_geometry_column=%2 AND f_table_schema=%3" )
0 commit comments