Skip to content

Commit a894781

Browse files
committed
oracle provider: fix srid detection (fixes #12674)
(cherry picked from commit 656af53)
1 parent 6ada2b6 commit a894781

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/oracle/qgsoracleconn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ void QgsOracleConn::retrieveLayerTypes( QgsOracleLayerProperty &layerProperty, b
464464
layerProperty.types << detectedType;
465465
}
466466

467-
int srid = detectedSrid != -1 ? detectedSrid : ( qry.value( idx ).isNull() ? -1 : qry.value( idx ).toInt() );
467+
int srid = detectedSrid > 0 ? detectedSrid : ( qry.value( idx ).isNull() ? -1 : qry.value( idx ).toInt() );
468468
layerProperty.srids << srid;
469469
srids << srid;
470470
}

0 commit comments

Comments
 (0)