We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 16624aa commit 92b5a2cCopy full SHA for 92b5a2c
src/providers/postgres/qgspostgresprovider.cpp
@@ -977,7 +977,7 @@ bool QgsPostgresProvider::loadFields()
977
fieldType = QVariant::Double;
978
979
QRegExp re( "numeric\\((\\d+),(\\d+)\\)" );
980
- if ( re.exactMatch( formattedFieldType ) && re.captureCount() == 2 )
+ if ( re.exactMatch( formattedFieldType ) )
981
{
982
fieldSize = re.cap( 1 ).toInt();
983
fieldPrec = re.cap( 2 ).toInt();
@@ -1008,7 +1008,7 @@ bool QgsPostgresProvider::loadFields()
1008
fieldType = QVariant::String;
1009
1010
QRegExp re( "char\\((\\d+)\\)" );
1011
- if ( re.exactMatch( formattedFieldType ) && re.captureCount() == 1 )
1012
1013
1014
}
0 commit comments