Skip to content

Commit 0576830

Browse files
committed
fix precise builds
1 parent d9ef1dc commit 0576830

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

src/providers/postgres/qgspostgresprovider.cpp

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,15 @@ QString QgsPostgresProvider::endianString()
632632
}
633633
}
634634

635+
636+
struct PGTypeInfo
637+
{
638+
QString typeName;
639+
QString typeType;
640+
QString typeElem;
641+
int typeLen;
642+
};
643+
635644
bool QgsPostgresProvider::loadFields()
636645
{
637646
if ( !mIsQuery )
@@ -660,14 +669,6 @@ bool QgsPostgresProvider::loadFields()
660669
sql = "SELECT oid,typname,typtype,typelem,typlen FROM pg_type";
661670
QgsPostgresResult typeResult = connectionRO()->PQexec( sql );
662671

663-
struct PGTypeInfo
664-
{
665-
QString typeName;
666-
QString typeType;
667-
QString typeElem;
668-
int typeLen;
669-
};
670-
671672
QMap<int, PGTypeInfo> typeMap;
672673
for ( int i = 0; i < typeResult.PQntuples(); ++i )
673674
{

0 commit comments

Comments
 (0)