mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Keep numeric fields type, length and precision in postgresql provider
This commit is contained in:
parent
3fcd1fd6a9
commit
92f71b696c
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user