Skip to content

Commit 814974b

Browse files
author
g_j_m
committed
The real fix for ticket #153. Not sure what I was thinking when I did
r5552. git-svn-id: http://svn.osgeo.org/qgis/trunk@5553 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent c8e5725 commit 814974b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ void QgsPostgresProvider::getFeatureAttributes(int key, int &row, QgsFeature *f)
734734
#endif
735735
PGresult *attr = PQexec(connection, (const char *)(sql.utf8()));
736736

737-
for (int i = 0; i < PQntuples(attr); i++) {
737+
for (int i = 0; i < PQnfields(attr); i++) {
738738
QString fld = PQfname(attr, i);
739739
// Dont add the WKT representation of the geometry column to the identify
740740
// results

0 commit comments

Comments
 (0)