Skip to content

Commit

Permalink
PostGIS support for importing layers with binary fields
Browse files Browse the repository at this point in the history
  • Loading branch information
audun authored and nyalldawson committed May 26, 2020
1 parent 5075e44 commit 7a5af29
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -4061,6 +4061,11 @@ bool QgsPostgresProvider::convertField( QgsField &field, const QMap<QString, QVa
fieldSize = -1;
break;

case QVariant::ByteArray:
fieldType = QStringLiteral( "bytea" );
fieldPrec = -1;
break;

default:
return false;
}
Expand Down

0 comments on commit 7a5af29

Please sign in to comment.