Skip to content
Permalink
Browse files

oracle provider: fix srid detection (fixes #12674)

(cherry picked from commit 656af53)
  • Loading branch information
jef-n committed May 7, 2015
1 parent 6ada2b6 commit a894781ef359d90812868e6d5f9c1f57f7196b0d
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 a894781

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