[QGIS Commit] r11104 - trunk/qgis/src/providers/postgres
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Fri Jul 17 13:35:44 EDT 2009
Author: mhugent
Date: 2009-07-17 13:35:44 -0400 (Fri, 17 Jul 2009)
New Revision: 11104
Modified:
trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
Log:
Handle non-ascii characters in domain check constraints
Modified: trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
===================================================================
--- trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp 2009-07-17 16:17:35 UTC (rev 11103)
+++ trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp 2009-07-17 17:35:44 UTC (rev 11104)
@@ -1770,7 +1770,7 @@
Result domainCheckRes = connectionRO->PQexec( domainCheckDefinitionSql );
if ( PQresultStatus( domainCheckRes ) == PGRES_TUPLES_OK && PQntuples( domainCheckRes ) > 0 )
{
- QString checkDefinition = PQgetvalue( domainCheckRes, 0, 0 );
+ QString checkDefinition = QString::fromUtf8( PQgetvalue( domainCheckRes, 0, 0 ) );
//we assume that the constraint is of the following form:
//(VALUE = ANY (ARRAY['a'::text, 'b'::text, 'c'::text, 'd'::text]))
More information about the QGIS-commit
mailing list