Skip to content
Permalink
Browse files

Handle non-ascii characters in domain check constraints

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@11104 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jul 17, 2009
1 parent 3f2f394 commit 9f77670ca0999f9ec279a63e890e824df139d813
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/providers/postgres/qgspostgresprovider.cpp
@@ -1770,7 +1770,7 @@ bool QgsPostgresProvider::parseDomainCheckConstraint( QStringList& enumValues, c
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]))

0 comments on commit 9f77670

Please sign in to comment.
You can’t perform that action at this time.