Skip to content
Permalink
Browse files
fix #1001 introduced with r8233
git-svn-id: http://svn.osgeo.org/qgis/trunk@8248 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Mar 19, 2008
1 parent ea33a10 commit af1b88d8473e8fb296d2f1ae36eedfc48eba8814
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -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);

0 comments on commit af1b88d

Please sign in to comment.