Skip to content
Permalink
Browse files

fix build problem with Qt 4.4

  • Loading branch information
jef-n committed Jul 17, 2011
1 parent 16624aa commit 92b5a2c9b18633bec85f390c88f8a428027e4fb1
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -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();
@@ -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();
}

0 comments on commit 92b5a2c

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