[Qgis-developer] QgsField::length semantic
Sandro Santilli
strk at kbt.io
Tue Oct 11 01:51:34 PDT 2016
On Tue, Oct 11, 2016 at 10:47:50AM +0200, Paolo Cavallini wrote:
> Il 11 ottobre 2016 10:45:18 CEST, Sandro Santilli <strk at kbt.io> ha scritto:
> >Does anyone have an idea about how should QgsField::length be
> >interpreted ?
>
> Isn't it related to the comma being counted in real fields?
The bug ? Probably. QgsOgrProvider::convertField adds one byte
for the comma while QgsPostgresProvider::convertField does not
But what I'd like to know is whether or not QgsField::length
is supposed to count or not the comma (or what else is meant
to be expressing) for a QVariant::Double and for other types.
--strk;
More information about the Qgis-developer
mailing list