oracle provider: fix srid detection (fixes #12674)

This commit is contained in:
Juergen E. Fischer 2015-05-08 00:46:19 +02:00
parent 6373ad6f64
commit 656af530c3

View File

@ -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;
}