Skip to content
Permalink
Browse files

oracle provider: fix srid detection (fixes #12674)

  • Loading branch information
jef-n committed May 7, 2015
1 parent 6373ad6 commit 656af530c3fa9353e35a812f880350e01f37ebc0
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/oracle/qgsoracleconn.cpp
@@ -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;
}

0 comments on commit 656af53

Please sign in to comment.
You can’t perform that action at this time.