Skip to content
Permalink
Browse files

postgres provider: set length and precision of native floating point …

…types to -1 (fixes #8145)
  • Loading branch information
jef-n committed Jul 8, 2013
1 parent e689364 commit f2031053878af267ef5fa77b676a7907ede8294d
Showing with 6 additions and 2 deletions.
  1. +4 −0 src/core/qgsvectorlayereditbuffer.cpp
  2. +2 −2 src/providers/postgres/qgspostgresprovider.cpp
@@ -412,6 +412,10 @@ bool QgsVectorLayerEditBuffer::commitChanges( QStringList& commitErrors )
}
}
}
else
{
success = false;
}

//
// update geometries
@@ -164,8 +164,8 @@ QgsPostgresProvider::QgsPostgresProvider( QString const & uri )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (decimal)" ), "decimal", QVariant::Double, 1, 20, 0, 20 )

// floating point
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (real)" ), "real", QVariant::Double )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "double precision", QVariant::Double )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (real)" ), "real", QVariant::Double, -1, -1, -1, -1 )
<< QgsVectorDataProvider::NativeType( tr( "Decimal number (double)" ), "double precision", QVariant::Double, -1, -1, -1, -1 )

// string types
<< QgsVectorDataProvider::NativeType( tr( "Text, fixed length (char)" ), "char", QVariant::String, 1, 255 )

0 comments on commit f203105

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