Skip to content
Permalink
Browse files

fix precise builds

  • Loading branch information
jef-n committed Mar 7, 2015
1 parent d9ef1dc commit 05768309a0d8e31601c455e138a854b655184ce0
Showing with 9 additions and 8 deletions.
  1. +9 −8 src/providers/postgres/qgspostgresprovider.cpp
@@ -632,6 +632,15 @@ QString QgsPostgresProvider::endianString()
}
}


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

bool QgsPostgresProvider::loadFields()
{
if ( !mIsQuery )
@@ -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 )
{

0 comments on commit 0576830

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