Skip to content
Permalink
Browse files

spatialite provider: load 64bit integers (fixes #12785)

(cherry picked from commit b736317)
  • Loading branch information
jef-n committed Jun 9, 2015
1 parent fab092a commit 391e99c7e8ae0644ea2f3a12ce55b272ed97a5d4
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/providers/spatialite/qgsspatialitefeatureiterator.cpp
@@ -354,8 +354,16 @@ QVariant QgsSpatiaLiteFeatureIterator::getFeatureAttribute( sqlite3_stmt* stmt,
{
if ( sqlite3_column_type( stmt, ic ) == SQLITE_INTEGER )
{
// INTEGER value
return sqlite3_column_int( stmt, ic );
if ( type == QVariant::Int )
{
// INTEGER value
return sqlite3_column_int( stmt, ic );
}
else
{
// INTEGER value
return ( qint64 ) sqlite3_column_int64( stmt, ic );
}
}

if ( sqlite3_column_type( stmt, ic ) == SQLITE_FLOAT )

0 comments on commit 391e99c

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