Skip to content

Commit

Permalink
fix build problem with Qt 4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Jul 17, 2011
1 parent 16624aa commit 92b5a2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -977,7 +977,7 @@ bool QgsPostgresProvider::loadFields()
fieldType = QVariant::Double;

QRegExp re( "numeric\\((\\d+),(\\d+)\\)" );
if ( re.exactMatch( formattedFieldType ) && re.captureCount() == 2 )
if ( re.exactMatch( formattedFieldType ) )
{
fieldSize = re.cap( 1 ).toInt();
fieldPrec = re.cap( 2 ).toInt();
Expand Down Expand Up @@ -1008,7 +1008,7 @@ bool QgsPostgresProvider::loadFields()
fieldType = QVariant::String;

QRegExp re( "char\\((\\d+)\\)" );
if ( re.exactMatch( formattedFieldType ) && re.captureCount() == 1 )
if ( re.exactMatch( formattedFieldType ) )
{
fieldSize = re.cap( 1 ).toInt();
}
Expand Down

0 comments on commit 92b5a2c

Please sign in to comment.