Keep numeric fields type, length and precision in postgresql provider

This commit is contained in:
arnaud.morvan@camptocamp.com 2016-05-24 17:15:44 +02:00
parent 3fcd1fd6a9
commit 92f71b696c

View File

@ -3336,16 +3336,16 @@ bool QgsPostgresProvider::convertField( QgsField &field, const QMap<QString, QVa
break;
case QVariant::Double:
if ( fieldSize > 18 )
if ( fieldPrec > 0 )
{
fieldType = "numeric";
fieldSize = -1;
}
else
{
fieldType = "float8";
fieldSize = -1;
fieldPrec = -1;
}
fieldPrec = -1;
break;
default: