Skip to content

Commit c4b6e7b

Browse files
author
mhugent
committed
Handle non-ascii characters in domain check constraints
git-svn-id: http://svn.osgeo.org/qgis/trunk@11104 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 1ed4f60 commit c4b6e7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/providers/postgres/qgspostgresprovider.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1770,7 +1770,7 @@ bool QgsPostgresProvider::parseDomainCheckConstraint( QStringList& enumValues, c
17701770
Result domainCheckRes = connectionRO->PQexec( domainCheckDefinitionSql );
17711771
if ( PQresultStatus( domainCheckRes ) == PGRES_TUPLES_OK && PQntuples( domainCheckRes ) > 0 )
17721772
{
1773-
QString checkDefinition = PQgetvalue( domainCheckRes, 0, 0 );
1773+
QString checkDefinition = QString::fromUtf8( PQgetvalue( domainCheckRes, 0, 0 ) );
17741774

17751775
//we assume that the constraint is of the following form:
17761776
//(VALUE = ANY (ARRAY['a'::text, 'b'::text, 'c'::text, 'd'::text]))

0 commit comments

Comments
 (0)