Skip to content

Commit df41977

Browse files
author
jef
committed
fix #1744
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10969 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent eff41a3 commit df41977

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1983,8 +1983,9 @@ QByteArray QgsPostgresProvider::paramValue( QString fieldValue, const QString &d
19831983
}
19841984
else
19851985
{
1986+
QString val = QString::fromUtf8( PQgetvalue( result, 0, 0 ) );
19861987
PQclear( result );
1987-
return QString::fromUtf8( PQgetvalue( result, 0, 0 ) ).toUtf8();
1988+
return val.toUtf8();
19881989
}
19891990
}
19901991

0 commit comments

Comments
 (0)