Skip to content
Permalink
Browse files

[oracle] Fix detection of geometry type when table contains some

empty geometries

On behalf of Faunalia, sponsored by ENEL

(cherry-picked from fe93e62)
  • Loading branch information
nyalldawson committed Jul 6, 2016
1 parent 91c86bd commit 0c060bda43572141869e12f2b4284fab9117acb0
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/oracle/qgsoracleprovider.cpp
@@ -2196,8 +2196,8 @@ bool QgsOracleProvider::getGeometryDetails()
}

if ( exec( qry, QString( mUseEstimatedMetadata
? "SELECT DISTINCT gtype FROM (SELECT t.%1.sdo_gtype AS gtype FROM %2 t WHERE rownum<1000) WHERE rownum<=2"
: "SELECT DISTINCT t.%1.sdo_gtype FROM %2 t WHERE rownum<=2" ).arg( quotedIdentifier( geomCol ) ).arg( mQuery ) ) )
? "SELECT DISTINCT gtype FROM (SELECT t.%1.sdo_gtype AS gtype FROM %2 t WHERE t.%1 IS NOT NULL AND rownum<1000) WHERE rownum<=2"
: "SELECT DISTINCT t.%1.sdo_gtype FROM %2 t WHERE t.%1 IS NOT NULL AND rownum<=2" ).arg( quotedIdentifier( geomCol ) ).arg( mQuery ) ) )
{
if ( qry.next() )
{

0 comments on commit 0c060bd

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