mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
oracle provider: fix srid detection (fixes #12674)
This commit is contained in:
parent
6373ad6f64
commit
656af530c3
@ -464,7 +464,7 @@ void QgsOracleConn::retrieveLayerTypes( QgsOracleLayerProperty &layerProperty, b
|
||||
layerProperty.types << detectedType;
|
||||
}
|
||||
|
||||
int srid = detectedSrid != -1 ? detectedSrid : ( qry.value( idx ).isNull() ? -1 : qry.value( idx ).toInt() );
|
||||
int srid = detectedSrid > 0 ? detectedSrid : ( qry.value( idx ).isNull() ? -1 : qry.value( idx ).toInt() );
|
||||
layerProperty.srids << srid;
|
||||
srids << srid;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user