mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-12 00:02:25 -04:00
spatialite provider: load 64bit integers (fixes #12785)
This commit is contained in:
parent
014f0703fe
commit
b736317005
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user