[QGIS Commit] r15748 - trunk/qgis/src/providers/postgres
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Sun Apr 17 10:00:45 EDT 2011
Author: jef
Date: 2011-04-17 07:00:45 -0700 (Sun, 17 Apr 2011)
New Revision: 15748
Modified:
trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
Log:
postgres provider: fix numeric types with precision
Modified: trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp
===================================================================
--- trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp 2011-04-17 13:58:59 UTC (rev 15747)
+++ trunk/qgis/src/providers/postgres/qgspostgresprovider.cpp 2011-04-17 14:00:45 UTC (rev 15748)
@@ -163,8 +163,8 @@
<< QgsVectorDataProvider::NativeType( tr( "Whole number (smallint - 16bit)" ), "int2", QVariant::Int )
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer - 32bit)" ), "int4", QVariant::Int )
<< QgsVectorDataProvider::NativeType( tr( "Whole number (integer - 64bit)" ), "int8", QVariant::LongLong )
- << QgsVectorDataProvider::NativeType( tr( "Decimal number (numeric)" ), "numeric", QVariant::LongLong, 1, 20, 0, 20 )
- << QgsVectorDataProvider::NativeType( tr( "Decimal number (decimal)" ), "decimal", QVariant::LongLong, 1, 20, 0, 20 )
+ << QgsVectorDataProvider::NativeType( tr( "Decimal number (numeric)" ), "numeric", QVariant::Double, 1, 20, 0, 20 )
+ << QgsVectorDataProvider::NativeType( tr( "Decimal number (decimal)" ), "decimal", QVariant::Double, 1, 20, 0, 20 )
// floating point
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (real)" ), "real", QVariant::Double )
More information about the QGIS-commit
mailing list