Skip to content
Permalink
Browse files
Exclude the geometry column when identifying the type
  • Loading branch information
szekerest authored and NathanW2 committed Mar 28, 2012
1 parent 067d7dd commit 142544959e9600ca2be88b1639ad0e2ee25b6ad0
Showing with 1 addition and 1 deletion.
  1. +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(

0 comments on commit 1425449

Please sign in to comment.