Skip to content
Browse files
Fix for ticket #153.
The attribute table was failing to display the contents of the last column
in a table for tables where the geometry column was not the last
in the table.

git-svn-id: c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
g_j_m committed Jun 27, 2006
1 parent b151fb2 commit 0c74014
Showing 1 changed file with 1 addition and 1 deletion.
@@ -734,7 +734,7 @@ void QgsPostgresProvider::getFeatureAttributes(int key, int &row, QgsFeature *f)
PGresult *attr = PQexec(connection, (const char *)(sql.utf8()));

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

0 comments on commit 0c74014

Please sign in to comment.