Skip to content

Commit

Permalink
fix precise builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Mar 7, 2015
1 parent d9ef1dc commit 0576830
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -632,6 +632,15 @@ QString QgsPostgresProvider::endianString()
}
}


struct PGTypeInfo
{
QString typeName;
QString typeType;
QString typeElem;
int typeLen;
};

bool QgsPostgresProvider::loadFields()
{
if ( !mIsQuery )
Expand Down Expand Up @@ -660,14 +669,6 @@ bool QgsPostgresProvider::loadFields()
sql = "SELECT oid,typname,typtype,typelem,typlen FROM pg_type";
QgsPostgresResult typeResult = connectionRO()->PQexec( sql );

struct PGTypeInfo
{
QString typeName;
QString typeType;
QString typeElem;
int typeLen;
};

QMap<int, PGTypeInfo> typeMap;
for ( int i = 0; i < typeResult.PQntuples(); ++i )
{
Expand Down

0 comments on commit 0576830

Please sign in to comment.