Skip to content

Commit

Permalink
fix #1001 introduced with r8233
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8248 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 19, 2008
1 parent 1c5c93b commit 7a634b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -1272,7 +1272,7 @@ bool QgsPostgresProvider::uniqueData(QString schemaName,

PGresult* unique = PQexec(connection, sql.toUtf8());

if (PQntuples(unique)==1 && QString::fromUtf8(PQgetvalue(unique, 0, 0)).startsWith("t") == 0)
if (PQntuples(unique)==1 && QString::fromUtf8(PQgetvalue(unique, 0, 0)).startsWith("t"))
isUnique = true;

PQclear(unique);
Expand Down

0 comments on commit 7a634b1

Please sign in to comment.