Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
oracle provider: fix srid detection (fixes #12674)
(cherry picked from commit 656af53)
  • Loading branch information
jef-n committed May 9, 2015
1 parent 6ada2b6 commit a894781
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/oracle/qgsoracleconn.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit a894781

Please sign in to comment.