Skip to content

Commit 1425449

Browse files
szekerestNathanW2
authored andcommittedMar 28, 2012
Exclude the geometry column when identifying the type
1 parent 067d7dd commit 1425449

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/providers/mssql/qgsmssqlprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,14 +317,14 @@ void QgsMssqlProvider::loadFields()
317317
while ( mQuery.next() )
318318
{
319319
QString sqlTypeName = mQuery.value( 5 ).toString();
320-
QVariant::Type sqlType = DecodeSqlType( sqlTypeName );
321320
if ( sqlTypeName == "geometry" || sqlTypeName == "geography" )
322321
{
323322
mGeometryColName = mQuery.value( 3 ).toString();
324323
mGeometryColType = sqlTypeName;
325324
}
326325
else
327326
{
327+
QVariant::Type sqlType = DecodeSqlType( sqlTypeName );
328328
if ( sqlTypeName == "int identity" || sqlTypeName == "bigint identity" )
329329
mFidColName = mQuery.value( 3 ).toString();
330330
mAttributeFields.insert(

0 commit comments

Comments
 (0)
Please sign in to comment.