Skip to content

Commit e4cf9cf

Browse files
author
jef
committed
fix #1707
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11107 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent b7c2b63 commit e4cf9cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ bool QgsPostgresProvider::getFeature( PGresult *queryResult, int row, bool fetch
543543
if ( fld.name() == primaryKey )
544544
{
545545
// primary key was already processed
546-
feature.addAttribute( *it, QString::number( oid ) );
546+
feature.addAttribute( *it, convertValue( fld.type(), QString::number(oid) ) );
547547
continue;
548548
}
549549

0 commit comments

Comments
 (0)