Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Exclude the geometry column when identifying the type
- Loading branch information
Showing
with
1 addition
and
1 deletion.
-
+1
−1
src/providers/mssql/qgsmssqlprovider.cpp
|
@@ -317,14 +317,14 @@ void QgsMssqlProvider::loadFields() |
|
|
while ( mQuery.next() ) |
|
|
{ |
|
|
QString sqlTypeName = mQuery.value( 5 ).toString(); |
|
|
QVariant::Type sqlType = DecodeSqlType( sqlTypeName ); |
|
|
if ( sqlTypeName == "geometry" || sqlTypeName == "geography" ) |
|
|
{ |
|
|
mGeometryColName = mQuery.value( 3 ).toString(); |
|
|
mGeometryColType = sqlTypeName; |
|
|
} |
|
|
else |
|
|
{ |
|
|
QVariant::Type sqlType = DecodeSqlType( sqlTypeName ); |
|
|
if ( sqlTypeName == "int identity" || sqlTypeName == "bigint identity" ) |
|
|
mFidColName = mQuery.value( 3 ).toString(); |
|
|
mAttributeFields.insert( |
|
|