Skip to content

Commit af1b88d

Browse files
author
jef
committed
fix #1001 introduced with r8233
git-svn-id: http://svn.osgeo.org/qgis/trunk@8248 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent ea33a10 commit af1b88d

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
@@ -1272,7 +1272,7 @@ bool QgsPostgresProvider::uniqueData(QString schemaName,
12721272

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

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

12781278
PQclear(unique);

0 commit comments

Comments
 (0)