Skip to content

Commit

Permalink
fix #1744
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@10969 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
jef committed Jun 23, 2009
1 parent 6faf04d commit f76f8a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1983,8 +1983,9 @@ QByteArray QgsPostgresProvider::paramValue( QString fieldValue, const QString &d
}
else
{
QString val = QString::fromUtf8( PQgetvalue( result, 0, 0 ) );
PQclear( result );
return QString::fromUtf8( PQgetvalue( result, 0, 0 ) ).toUtf8();
return val.toUtf8();
}
}

Expand Down

0 comments on commit f76f8a9

Please sign in to comment.