Skip to content

Commit

Permalink
Fixed issue with spatialite assigning incorrect field types when crea…
Browse files Browse the repository at this point in the history
…ting columns
  • Loading branch information
timlinux committed Apr 14, 2012
1 parent b2baae2 commit 4097ed5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/providers/spatialite/qgsspatialiteprovider.cpp
Expand Up @@ -483,10 +483,10 @@ QgsSpatiaLiteProvider::QgsSpatiaLiteProvider( QString const &uri )
}
//fill type names into sets
mNativeTypes
<< QgsVectorDataProvider::NativeType( tr( "Binary object (BLOB)" ), "SQLITE_BLOB", QVariant::ByteArray )
<< QgsVectorDataProvider::NativeType( tr( "Text" ), "SQLITE_TEXT", QVariant::String )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "SQLITE_FLOAT", QVariant::Double, 0, 20, 0, 20 )
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "SQLITE_INTEGER", QVariant::LongLong, 0, 20 )
<< QgsVectorDataProvider::NativeType( tr( "Binary object (BLOB)" ), "BLOB", QVariant::ByteArray )
<< QgsVectorDataProvider::NativeType( tr( "Text" ), "TEXT", QVariant::String )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "FLOAT", QVariant::Double, 0, 20, 0, 20 )
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer)" ), "INTEGER", QVariant::LongLong, 0, 20 )
;
}

Expand Down

0 comments on commit 4097ed5

Please sign in to comment.