Skip to content
Permalink
Browse files

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

  • Loading branch information
jef-n committed Jun 9, 2015
1 parent 014f070 commit b736317005c2417ffc037bbc3969a2b180c49dd7
Showing with 10 additions and 2 deletions.
  1. +10 −2 src/providers/spatialite/qgsspatialitefeatureiterator.cpp
@@ -369,8 +369,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 b736317

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