Skip to content
Permalink
Browse files

Handle non-ascii characters in domain check constraints

git-svn-id: http://svn.osgeo.org/qgis/trunk@11104 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jul 17, 2009
1 parent 1ed4f60 commit c4b6e7b2f249aff06fa8ef664db22915dda1d516
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 c4b6e7b

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